mirror of
https://github.com/krislamo/pup-tests
synced 2025-01-07 09:30:35 +00:00
Modified to work with VirtualBox
Development moved to VirtualBox due to work's custom vagrant box only supporting the VirtualBox provider. Development may eventually end up back on libvirt. Version numbers were updated, some broken code was removed and more instructions were added on the readme.
This commit is contained in:
parent
c3802b255a
commit
03bacd745b
19
README.md
19
README.md
@ -12,8 +12,8 @@ request, you are agreeing to comply with this waiver of copyright interest.
|
||||
|
||||
## Getting Started
|
||||
Puppet Tests is developed using the following technologies:
|
||||
* Vagrant 2.2.2 + vagrant-libvirt 0.0.45
|
||||
* Ansible 2.7.5
|
||||
* Vagrant 2.2.3
|
||||
* Ansible 2.7.6
|
||||
* Puppet 4.8.2
|
||||
|
||||
After installing the above, simply navigate to the root directory and deploy
|
||||
@ -23,11 +23,18 @@ the virtual machines:
|
||||
|
||||
Vagrant will create at least two virtual machines and provision a puppet
|
||||
client-server architecture using Ansible code from the /setup/ folder. You will
|
||||
want to login to client:
|
||||
want to login to the puppet master:
|
||||
|
||||
`vagrant ssh master`
|
||||
|
||||
Sign the client's certificate and logout:
|
||||
|
||||
`sudo puppet cert sign webserver`
|
||||
|
||||
`exit`
|
||||
|
||||
Now login to the webserver and provision the machine:
|
||||
|
||||
`vagrant ssh webserv`
|
||||
|
||||
After logging into the puppet client, provision the machine:
|
||||
|
||||
`sudo puppet agent -t`
|
||||
|
||||
|
@ -10,13 +10,6 @@
|
||||
- name: Start Puppet
|
||||
service: name=puppet state=started
|
||||
|
||||
- name: Wait for Puppet Master
|
||||
wait_for:
|
||||
host: puppet
|
||||
port: 8140
|
||||
delay: 10
|
||||
when: agent_install.changed
|
||||
|
||||
- name: Request Puppet Master
|
||||
command: puppet agent -t
|
||||
register: send_csr
|
||||
|
@ -20,13 +20,3 @@
|
||||
chdir: /etc/puppet/code/environments/production
|
||||
when: r10k_install.changed
|
||||
|
||||
- name: Wait for Webserver Key
|
||||
wait_for:
|
||||
path: /var/lib/puppet/ssl/ca/requests/webserver.pem
|
||||
when: pup_install.changed
|
||||
|
||||
- name: Sign Webserver Key
|
||||
command: puppet cert sign webserver
|
||||
args:
|
||||
removes: /var/lib/puppet/ssl/ca/requests/webserver.pem
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user