Slide 18
Slide 18 text
2.4 Playbook x Manifest (Puppet)
#playbook.yml
---
- hosts: all
sudo: true
tasks:
- name: Update apt-cache
apt: update_cache=yes
- name: Install Nginx
apt: pkg=nginx state=latest
#default.pp
exec { 'apt-get update':
command => '/usr/bin/apt-get update'
}
package { 'nginx':
ensure => "installed",
require => Exec['apt-get update'],
}