Skip to content

Instantly share code, notes, and snippets.

# nested_loos.yml
---

- name: Network Getting Started First Playbook
  hosts: all
  tasks:
    - name: say hello using nested loops
      debug: msg="The value {{ item[0] }} and {{ item[1] }}"
 with_nested:
# Nagios Features
1. Infrastructure Monitoring
a. Provided by: Nagios Core | Nagios XI (commercial offering)
b. Uses standard protocols: ICMP, TCP, UDP, etc
c. Host resources: Disk, CPU, RAM usage - NRPE add on
d. Event handler for service restarts across platforms: linux, unix, windows, etc.
e. Checks are performed every 5 minutes by default, unless overriden via HOST, HOSTGROUP, SERVICE, etc
f. Active (Default, Nagios-initiated) and Passive (externally-initiated) checks are supported
systemctl status puppetmaster
systemctl status puppetmaster.service
service puppetmaster status
git checkout master <filename>
package {'puppet-lint':
ensure => 'installed',
provider => 'gem',
require => Package['rubygems'],
}
package { 'rubygems':
ensure => present,
}

Frappe - Creating a Custom Application & Integrating it with ERPNext

Exercise create a total weight field in erpnext Sales Order

Custom Application

create new app

$ bench new-app erpnext_shipping
INFO:bench.app:creating new app erpnext_shipping

Chapter 2. Building a personal CD library.

Starting a django project

$ mkdir chapter2 && cd chapter2
$ django-admin.py startproject djen_project .

Getting started with the App

  • create app

Chapter 3. Building a Pastebin

In this chapter we will be designing a simple pastebin. Our pastebin will be able to

  • Allow users to paste some text
  • Allow users to edit or delete the text
  • Allow users to view all texts
  • Clean up texts older than a day

Some ‘views’ that the user will see are

  • A list view of all recent texts