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
| vsphere_vm { '/opdx1/vm/eng/sample': | |
| ensure => running, | |
| source => '/opdx1/vm/eng/source', | |
| memory => 1024, | |
| cpus => 1, | |
| } |
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 myapplication::db::role { | |
| include profile::common | |
| include profile::application::db | |
| include profile::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
| require 'puppet/node/facts' | |
| require 'puppet/indirector/store_configs' | |
| class Puppet::Node::Facts::Satellite < Puppet::Indirector::StoreConfigs | |
| desc "Save facts to Satellite's Foreman component and the store_configs backend. | |
| It does not retrieve facts from Foreman." | |
| def save(request) | |
| raise "satellite: #{request.info}" | |
| super(request) |
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
| network_interface { 'Ethernet1': | |
| enable => true, | |
| description => 'Port channel link', | |
| duplex => 'full', | |
| speed => '10g', | |
| mtu => 9000, | |
| } | |
| network_interface { 'Ethernet2': | |
| enable => true, |
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
| <%# | |
| kind: provision | |
| name: Satellite Kickstart Default | |
| oses: | |
| - Red Hat Enterprise Linux 5 | |
| - Red Hat Enterprise Linux 6 | |
| - Red Hat Enterprise Linux 7 | |
| %> | |
| <% | |
| rhel_compatible = @host.operatingsystem.family == 'Redhat' && @host.operatingsystem.name != 'Fedora' |
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
| #Usage: noop() in Puppet DSL. Returns true/false | |
| module Puppet::Parser::Functions | |
| newfunction(:noop, :type => :rvalue) do |args| | |
| Puppet[:noop] | |
| end | |
| 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
| file { 'C:/tomcat/webapps/app.war': | |
| ensure => file, | |
| source => 'puppet:///modules/myapp/app.war', | |
| notify => Service['myapp'], | |
| } | |
| service { 'myapp': | |
| ensure => running, | |
| enable => true, | |
| } |
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 apache { | |
| package { 'httpd': | |
| ensure => installed, | |
| } | |
| service { 'httpd': | |
| ensure => running, | |
| require => Package[httpd], | |
| } |
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
| [Fri Oct 26 19:46:12 2012] [error] cgid daemon process died, restarting | |
| [ pid=17253 file=ext/apache2/Hooks.cpp:727 time=2012-10-26 20:00:04.907 ]: | |
| Unexpected error in mod_passenger: Could not connect to the ApplicationPool server: Broken pipe (32) | |
| Backtrace: | |
| (empty) | |
| [ pid=17253 file=ext/apache2/Hooks.cpp:727 time=2012-10-26 20:42:46.581 ]: | |
| Unexpected error in mod_passenger: Could not connect to the ApplicationPool server: Broken pipe (32) | |
| Backtrace: | |
| (empty) |
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
| --- | |
| - 10: | |
| time: 2012-09-19 23:06:29.112718 -07:00 | |
| location: location_a | |
| - 8: | |
| time: 2012-09-19 23:06:19.112718 -07:00 | |
| location: location_a | |
| - 7: | |
| time: 2012-09-19 23:06:09.112718 -07:00 | |
| location: location_a |