1
0
mirror of https://github.com/krislamo/pup-tests synced 2025-09-08 15:49:30 +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:
2019-01-09 15:48:17 -05:00
commit 7f818e3c31
11 changed files with 142 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
# vi uses elvis-tiny on Debian. vim is better.
- name: Install VIM
apt: name=vim state=present
- name: Lock Puppet Version
template:
src: 00-puppet.pref.j2
dest: /etc/apt/preferences.d/00-puppet.pref
- name: Deploy hosts file
template:
src: hosts.j2
dest: /etc/hosts

View File

@@ -0,0 +1,4 @@
Package: puppet puppetmaster
Pin: version 4.8*
Pin-Priority: 501

View 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