node 'web02.example.com' {
include 'some::other::modules'
include 'even::more::modules'
# Declare apache::mod::php before apache
include 'apache::mod::php'
class { 'apache':
mpm_module => 'prefork',
}
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
input { | |
log4j { | |
port => 4560 | |
type => "log4j" | |
codec => plain { charset => "ISO-8859-1" } | |
} | |
tcp { | |
codec => oldlogstashjson | |
port => 4561 |
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
input { | |
log4j { | |
port => 4560 | |
type => "log4j" | |
codec => plain { charset => "ISO-8859-1" } | |
} | |
tcp { | |
codec => oldlogstashjson | |
port => 4561 |
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
--- | |
profile::postgresql::server::dbs: | |
redmine: | |
user: redmine | |
password: "postgresql_password('redmine', 'xxx')" | |
# The above results in puppetlabs-postgresql's Postgresql::Server::Role class | |
# passing the string "postgresql_password('redmine', 'xxx')" verbatim as | |
# ENCRYPTED PASSWORD to the ALTER ROLE statement postgresql_psql creates, which of course fails. |
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
... | |
describe '#some_array_parameter' do | |
it 'should default to []' do | |
# ??? | |
end | |
context 'the array parameter does something' do | |
let(:params) { { :some_array_parameter => [ 'foo', 'bar' ] } } | |
... | |
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
Info: Retrieving pluginfacts | |
Info: Retrieving plugin | |
Error: Could not retrieve local facts: undefined method `puppetversion' for Facter:Module | |
Error: Failed to apply catalog: Could not retrieve local facts: undefined method `puppetversion' for Facter:Module |
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
$foo = undef | |
validate_string($foo) |
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 default { | |
$role = hiera('role') | |
include "role::${role}" | |
} |
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
profile::iptables_default::rules_manage: true | |
profile::iptables_default::rule_file: /etc/sysconfig/iptables.TEST | |
profile::iptables_default::filter_chain_defaults: | |
table: filter | |
policy: ACCEPT | |
require: Iptables::Add_table['iptables_filter'] | |
profile::iptables_default::filter_chains: | |
mydefaultfilterchains: |
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
echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list | |
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - | |
sudo apt-get update | |
sudo apt-get install postgresql-9.3 postgresql-server-dev-9.3 postgresql-contrib-9.3 -y | |
sudo su - postgres -c "psql template1 -p 5433 -c 'CREATE EXTENSION IF NOT EXISTS hstore;'" | |
sudo su - postgres -c "psql template1 -p 5433 -c 'CREATE EXTENSION IF NOT EXISTS \"uuid-ossp\";'" | |
sudo su - postgres -c "service postgresql stop" | |
sudo su - postgres -c '/usr/lib/postgresql/9.3/bin/pg_upgrade -b /usr/lib/postgresql/9.1/bin -B /usr/lib/postgresql/9.3/bin -d /var/lib/postgresql/9.1/main/ -D /var/lib/postgresql/9.3/main/ -O "-c config_file=/etc/postgresql/9.3/main/postgresql.conf" -o "-c config_file=/etc/postgresql/9.1/main/postgresql.conf"' | |