# 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:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
systemctl status puppetmaster | |
systemctl status puppetmaster.service | |
service puppetmaster status |
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
notes from https://learning.oreilly.com/videos/puppet-5/9781789131642/
- look up configuration value
- what changes in the future
Hiera locations
- /etc/puppetlabs/code/environments/production/hiera.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git checkout master <filename> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package {'puppet-lint': | |
ensure => 'installed', | |
provider => 'gem', | |
require => Package['rubygems'], | |
} | |
package { 'rubygems': | |
ensure => present, | |
} |
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