1
0
mirror of https://github.com/krislamo/pup-tests synced 2024-09-19 17:20: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:
Kris Lamoureux 2019-02-07 11:44:32 -05:00
parent c3802b255a
commit 03bacd745b
Signed by: kris
GPG Key ID: A30022791E1719A4
3 changed files with 13 additions and 23 deletions

View File

@ -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`

View File

@ -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

View File

@ -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