July 2017
Beginner
208 pages
5h 10m
English
A file provisioner simply uploads a file to the server. It's a perfect way to upload configuration files, certificates, and so on. Create a new file named setup.pp in the ./modules/application/ folder with the following content:
host { 'repository':
ip => '10.24.45.127',
}
Puppet's host resource will add a host entry on the machine. Normally, we should not hardcode host entries on the machine. However, sometimes, it doesn't have access to the DNS server yet, but it already needs to install some packages from an internal repository. That's the use case our manifest will cover. We just need to upload it.
Because we will end up with two different provisioners: file and remote-exec, we should move connection ...
Read now
Unlock full access