This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| :backends: | |
| - yaml | |
| :yaml: | |
| :datadir: /etc/puppet/hieradata | |
| :hierarchy: | |
| - "%{clientcert}" | |
| - common |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| ntp::restrict: | |
| - | |
| ntp::autoupdate: false | |
| ntp::enable: true | |
| ntp::servers: | |
| - 0.us.pool.ntp.org iburst | |
| - 1.us.pool.ntp.org iburst | |
| - 2.us.pool.ntp.org iburst | |
| - 3.us.pool.ntp.org iburst |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| ntp::restrict: | |
| - -6 ::1 | |
| ntp::autoupdate: true | |
| ntp::enable: true | |
| ntp::servers: | |
| - agent.example.com iburst | |
| - agent1.example.com iburst | |
| - agent2.example.com iburst |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Open Git Bash | |
| cd ~/learn | |
| mkdir mcollective | |
| wget -c https://github.com/ripienaar/mcollective-vagrant/archive/master.zip | |
| #Alternately download the above repo as a zip file directly from https://github.com/ripienaar/mcollective-vagrant and unzip inside mcollective dir. | |
| cd mcollective-vagrant-master | |
| #Edit Vagrantfile, set instances to 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| include "director.vcl"; | |
| include "devicedetect.vcl"; | |
| sub vcl_recv { | |
| set req.backend = ikuna_director; | |
| if (! req.backend.healthy) { | |
| set req.grace = 5m; | |
| } else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Cloudformation Template URI for Puppet Master | |
| http://initcron-training.s3.amazonaws.com/puppet/cfn-puppet-master.template | |
| # Cloudformation Template URI for Puppet Agent | |
| http://initcron-training.s3.amazonaws.com/puppet/cfn-puppet-agent.template | |
| # vagrant config for aws | |
| config.vm.provider :aws do |aws, override| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| file { '/etc/motd': | |
| content => "Welcome to Training virtual machine! | |
| Managed by Puppet.\n" | |
| } | |
| package{'emacs23-nox':} | |
| package{'ntp':} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1. Clone Repository | |
| $ git clone https://[email protected]/SST-Cengage/hackathon.git | |
| (replace USERNAME with your github id) | |
| 2. Change into the directory created | |
| $ cd hackathon/ | |
| 3. Check the current branch | |
| $ git branch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Installing Chef Server | |
| 1. Download chef server installer | |
| https://www.getchef.com/download-open-source-chef-server-11/ | |
| 2. Install Chef Server using dpkg on ubuntu | |
| $ dpkg -i chef-server_11.1.3-1_amd64.deb | |
| 3. Configure Chef Server | |
| $ sudo chef-server-ctl reconfigure |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| VAGRANTFILE_API_VERSION = "2" | |
| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
| # change the box name with your own box | |
| # to find out the box name, use following command, | |
| # $vagrant box list | |
| config.vm.box = "puppet-razor-centos-6.6-x86_64-v2" |