- The "system ruby" is installed from the distribution packages
- Puppet is not anywhere in $LOAD_PATH except for the portion specified by the RUBYLIB environment variable, pointing at a VCS working copy.
- The same for Facter, MCollective, any software produced by Puppet Labs.
- Ruby Gems is not installed in the system paths. (We'll install it in a user path later on so we need the system to be nice and clean)
This fails as expected:
$ rspec --format d spec/unit/application/describe_spec.rb
TypeDoc
(#13070) Should not explode (Will fail on Puppet 2.7.7 through 2.7.14) (FAILED - 1)
Failures:
1) TypeDoc (#13070) Should not explode (Will fail on Puppet 2.7.7 through 2.7.14)
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
| # Use it | |
| # I want this windows machine to announce the time as described at: | |
| # http://support.microsoft.com/kb/816042 | |
| registry::subkey { 'HKLM\System\CurrentControlSet\Services\W32Time\Config\AnnounceFlags': | |
| value_data => 'A', | |
| value_type => DWORD, | |
| } | |
| # The definition |
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
| #! /usr/bin/env ruby | |
| module Stomp | |
| class Error < StandardError | |
| end | |
| end | |
| module Jeff | |
| def self.unknown_error | |
| if Stomp.const_defined? "Error" |
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
| ############################################################# | |
| ################### OFFICIAL UBUNTU REPOS ################### | |
| ############################################################# | |
| ###### Ubuntu Main Repos | |
| deb http://us.archive.ubuntu.com/ubuntu/ lucid main restricted universe multiverse | |
| deb-src http://us.archive.ubuntu.com/ubuntu/ lucid main restricted universe multiverse | |
| ###### Ubuntu Update Repos | |
| deb http://us.archive.ubuntu.com/ubuntu/ lucid-security main restricted universe multiverse |
This module is located at http://forge.puppetlabs.com/puppetlabs/mysql
Installing the module is a single command in PE 2.5
root@pe-centos6:~# puppet module install puppetlabs-mysql
Preparing to install into /etc/puppetlabs/puppet/modules ...
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: site::root_user | |
| # | |
| # This is a simple class to manage the root user password. | |
| # The shadow hash of an existing password can be easily obtained | |
| # by running `puppet resource user root` on a Linux system | |
| # that has the desired root password already set. | |
| # Puppet will then manage this password everywhere. | |
| # | |
| # First, I set the password to "puppet" on one Linux node and then get back the | |
| # shadow hash. |
root@pe-centos6:~# puppet module install rtyler/jenkins
Preparing to install into /etc/puppetlabs/puppet/modules ...
Downloading from http://forge.puppetlabs.com ...
Installing -- do not interrupt ...
/etc/puppetlabs/puppet/modules
└─┬ rtyler-jenkins (v0.2.1)
└── puppetlabs-apt (v0.0.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
| # = motd class | |
| # | |
| # A Hierarchy of Class Param Value => Node Param Value => Module Default Value | |
| # | |
| # WITHOUT _real and UNSET ugliness! Hooray! | |
| # ... but WITH inherits! Boo..? | |
| # | |
| # The class param value part of the hierarchy happens here since this is a parameterized class. | |
| # The node param value and module default part of the hierarchy happens in params class | |
| # we're inheriting from. |