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
owner=>"pe-puppet", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' | |
Debug: Using settings: adding file resource 'hostcert': 'File[/etc/puppetlabs/puppet/ssl/certs/gerritagent.puppetlabs.vm.pem]{:path=>"/etc/puppetlabs/puppet/ssl/certs/gerritagent.puppetlabs.vm.pem", :mode=>"644", :owner=>"pe-puppet", :ensure=>:file, :loglevel=>:debug, :links=>:follow, :backup=>false}' | |
Debug: Using settings: adding file resource 'hostprivkey': 'File[/etc/puppetlabs/puppet/ssl/private_keys/gerritagent.puppetlabs.vm.pem]{:path=>"/etc/puppetlabs/puppet/ssl/private_keys/gerritagent.puppetlabs.vm.pem", :mode=>"600", :owner=>"pe-puppet", :ensure=>:file, :loglevel=>:debug, :links=>:follow, :backup=>false}' | |
Debug: Using settings: adding file resource 'hostpubkey': 'File[/etc/puppetlabs/puppet/ssl/public_keys/gerritagent.puppetlabs.vm.pem]{:path=>"/etc/puppetlabs/puppet/ssl/public_keys/gerritagent.puppetlabs.vm.pem", :mode=>"644", :owner=>"pe-puppet", :ensure=>:file, :loglevel=>:debug, :links=>:follow, :backup |
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
[root@agent1 rc3.d]# puppet --version | |
3.6.0 (Puppet Enterprise 3.3.0-rc1-573-ge781bf5) | |
[root@agent1 rc3.d]# rpm -qa|grep mcollective | |
pe-mcollective-common-2.5.0.0-1.pe.el6.noarch | |
pe-mcollective-2.5.0.0-1.pe.el6.noarch | |
[root@agent1 rc3.d]# ./S24pe-mcollective status | |
mcollectived is stopped | |
[root@agent1 rc3.d]# ./S24pe-mcollective start | |
Starting pe-mcollective: /opt/puppet/lib/ruby/site_ruby/1.9.1/mcollective/pluginmanager.rb:169:in `load': cannot load such file -- mcollective/facts/yaml_facts.rb (LoadError) | |
from /opt/puppet/lib/ruby/site_ruby/1.9.1/mcollective/pluginmanager.rb:169:in `loadclass' |
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
curl -X PUT -H 'Content-Type: application/json' \ | |
-d '{ | |
"id": "ddab2071-26ea-4261-af09-7b6b97fa04d2", | |
"name": "qa_group", | |
"environment": "dev", | |
"parent": "00000000-0000-4000-8000-000000000000", | |
"rule": [ | |
"~", | |
"name", | |
"ntpagent[0.9].puppetlabs\\.vm$" |
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
[root@classifier vagrant]# rpm -qip pe-classifier-0.3.3-1.el6.noarch.rpm | |
Name : pe-classifier Relocations: (not relocatable) | |
Version : 0.3.3 Vendor: Puppet Labs | |
Release : 1.el6 Build Date: Fri May 16 16:08:31 2014 | |
Install Date: (not installed) Build Host: rpm-builder-4 | |
Group : System Environment/Daemons Source RPM: pe-classifier-0.3.3-1.el6.src.rpm | |
Size : 13696666 License: ASL 2.0 | |
Signature : (none) | |
URL : http://github.com/puppetlabs/ezbake | |
Summary : Puppet Labs - pe-classifier |
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
curl -X POST -H 'Content-Type: application/json' \ | |
-d '{ | |
"id": "ddab2071-26ea-4261-af09-7b6b97fa04d2", | |
"name": "qa_group", | |
"environment": "production", | |
"parent": "00000000-0000-4000-8000-000000000000", | |
"rule": [ | |
"~", | |
"name", | |
"agent1.puppetlabs\\.vm$" |
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
--- | |
# The resolvable name that agent systems will use as the puppet master. | |
# Literally, the configuration value of the `server` setting in the [agent] | |
# section of puppet.conf. Typically this will be a load-balanced DNS name. If | |
# only one puppet master is being deployed, it may be set to the resolvable | |
# name of the puppet master. | |
:puppet: "loadbalancer.puppetlabs.vm" | |
# The resolvable name of the server to install the puppet CA service on. | |
:ca: "ca.puppetlabs.vm" |
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
Servers.yaml | |
--- | |
:puppet: "master.breaktest.puppetlabs.vm" | |
# The resolvable name of the server to install the puppet CA service on. | |
:ca: "ca.breaktest.puppetlabs.vm" | |
# The resolvable name of server to install PuppetDB on. | |
:puppetdb: "db.breaktest.puppetlabs.vm" |
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
classroom::params | |
classroom | |
classroom::master | |
classroom::master::repositories | |
git | |
classroom::master::hiera | |
classroom::master::time | |
ntp::params | |
ntp | |
ntp::install |
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
########################################################################################################################### | |
# | |
# Purpose: beaker-rspec acceptance tests for Puppet Fundamentals lab "Apache Virtual Hosts" | |
# | |
# Usage: From the courseware directory: | |
# 1. 'bundle install' to install required gems | |
# 2. 'bundle exec rspec spec/acceptance/courses/fundamentals/Defined_Resources/Lab_ApacheVirtualHosts_spec.rb' to run the test | |
# | |
########################################################################################################################### |
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
define apache::vhost ( | |
$port = '80', | |
$priority = '10', | |
$options = 'Indexes MultiViews', | |
$vhost_name = $title, | |
$servername = $title, | |
$docroot = "${apache::httpd_docroot}/${title}", | |
){ | |
$docowner = $apache::httpd_user |
OlderNewer