Managing Apache servers
Apache is the world's favorite web server, so it's highly likely that part of your Puppetly duties will include installing and managing Apache.
How to do it...
We'll install and use the puppetlabs-apache
module to install and start Apache. This time, when we run puppet module install
, we'll use the -i
option to tell Puppet to install the module in our Git repository's module's directory.
Install the module using
puppet modules install
:t@mylaptop ~/puppet $ puppet module install -i modules puppetlabs-apache Notice: Preparing to install into /home/thomas/puppet/modules ... Notice: Downloading from https://forgeapi.puppetlabs.com ... Notice: Installing -- do not interrupt ... /home/thomas/puppet/modules └─┬ puppetlabs-apache (v1.1.1) ├── puppetlabs-concat (v1.1.1) └── puppetlabs-stdlib (v4.3.2)
Add the modules to your Git repository and push them out:
t@mylaptop ~/puppet $ git add modules/apache modules/concat modules/stdlib t@mylaptop ~/puppet $ git commit -m "adding...