$ mkdir chapter2 && cd chapter2
$ django-admin.py startproject djen_project .
- create app
package {'puppet-lint': | |
ensure => 'installed', | |
provider => 'gem', | |
require => Package['rubygems'], | |
} | |
package { 'rubygems': | |
ensure => present, | |
} |
git checkout master <filename> |
notes from https://learning.oreilly.com/videos/puppet-5/9781789131642/
Hiera locations
notes from https://learning.oreilly.com/videos/puppet-5/9781789137125
$ git clone https://github.com/bitfield/puppet-beginners-guide-3.git
$ cd puppet-beginners-guide-3
systemctl status puppetmaster | |
systemctl status puppetmaster.service | |
service puppetmaster status |
# 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 | |
# 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:
# iterator_conditional.yml
---
- name: test iteratory with when
hosts: all
tasks:
- command: echo {{ item }}
with_items: [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]
when: item > 7