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
| --- node.rb.orig 2015-06-09 17:05:00.466081000 +0000 | |
| +++ node.rb 2015-06-09 17:09:13.798081000 +0000 | |
| @@ -14,6 +14,9 @@ | |
| :ssl_cert => "/var/lib/puppet/ssl/certs/foreman.nyc2.example.com.pem", # e.g. /var/lib/puppet/ssl/certs/FQDN.pem | |
| :ssl_key => "/var/lib/puppet/ssl/private_keys/foreman.nyc2.example.com.pem" # e.g. /var/lib/puppet/ssl/private_keys/FQDN.pem | |
| } | |
| +if defined?(Encoding) | |
| + Encoding.default_external = Encoding::UTF_8 | |
| +end |
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
| class nginx::configure{ | |
| file { '/var/www': | |
| ensure => directory, | |
| } | |
| file { '/var/www/cinema': | |
| ensure => directory, | |
| } | |
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
| class ntp($server = undef) { | |
| package { 'ntp': | |
| ensure => installed, | |
| } | |
| file { '/etc/ntp.conf': | |
| content => template('ntp/ntp.conf.erb'), | |
| notify => Service['ntpd'], | |
| } |
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
| driftfile /var/lib/ntp/ntp.drift | |
| <% if @server -%> | |
| server <%= @server %> prefer | |
| <% end -%> | |
| server 0.ubuntu.pool.ntp.org | |
| server 1.ubuntu.pool.ntp.org | |
| server 2.ubuntu.pool.ntp.org | |
| server 3.ubuntu.pool.ntp.org | |
| server ntp.ubuntu.com | |
| restrict -4 default kod notrap nomodify nopeer noquery |
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. Install the following softwares, | |
| a. Virtualbox | |
| b. Vagrant | |
| c. On windows , install git for windows in addition | |
| 2. Copy over the box file (VM template) cmad_minimal_v2.box to your laptop along with "cmad" directory | |
| 3. Open iterm on mac or "git bash" terminal on windows and browse to the directory which contains the box file cmad_minimal_v2.box. Run the following command to add the VM template | |
| $ vagrant box add cmad2 cmad_minimal_v2.box |
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
| nginx: | |
| image: initcron/nginx:latest | |
| command: nginx | |
| ports: | |
| - "80:80" | |
| links: | |
| - mysql | |
| mysql: | |
| image: mysql | |
| environment: |
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
| wordpress: | |
| image: wordpress | |
| links: | |
| - db:mysql | |
| ports: | |
| - 80 | |
| db: | |
| image: mysql |
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
| ** Setting up Environment | |
| *** Softwares Required | |
| * Docker Toolbox | |
| * Virtualbox | |
| * Vagrant | |
| * Git for Windows | |
| * Vagrant Box/Template (docker_demo.box) | |
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
| # On Puppet Enterprise Master | |
| # Login as pe-admin | |
| $ sudo su | |
| $ su - peadmin | |
| # List mco commands, print help | |
| $ mco help | |
| # Ping All Hosts |
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
| $ docker | |
| #docker <command> --help | |
| $ docker run --help | |
| $ docker info | |
| $ docker version | |
| # Running Ephemeral Container | |
| $ docker run ubuntu /bin/echo "Hello World" | |
| $ docker ps |