mirror of
https://github.com/krislamo/pup-tests
synced 2025-09-09 08:09:28 +00:00
Setup Puppet Environment
Ansible sets up a puppet master and puppet agent on two virtual machines with a hello world puppet application.
This commit is contained in:
4
setup/roles/common/templates/00-puppet.pref.j2
Normal file
4
setup/roles/common/templates/00-puppet.pref.j2
Normal file
@@ -0,0 +1,4 @@
|
||||
Package: puppet puppetmaster
|
||||
Pin: version 4.8*
|
||||
Pin-Priority: 501
|
||||
|
11
setup/roles/common/templates/hosts.j2
Normal file
11
setup/roles/common/templates/hosts.j2
Normal file
@@ -0,0 +1,11 @@
|
||||
127.0.0.1 localhost
|
||||
127.0.1.1 {{ ansible_hostname }}
|
||||
|
||||
# The following lines are desirable for IPv6 capable hosts
|
||||
::1 localhost ip6-localhost ip6-loopback
|
||||
ff02::1 ip6-allnodes
|
||||
ff02::2 ip6-allrouters
|
||||
|
||||
192.168.121.100 puppet
|
||||
192.168.121.101 webserver
|
||||
|
Reference in New Issue
Block a user