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
--- | |
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
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
#!/usr/bin/env ruby | |
# Aside from removing Ruby on Rails specific code this is taken verbatim from | |
# mislav's git-deploy (http://github.com/mislav/git-deploy) and it's awesome | |
# - Ryan Florence (http://ryanflorence.com) | |
# | |
# Install this hook to a remote repository with a working tree, when you push | |
# to it, this hook will reset the head so the files are updated | |
if ENV['GIT_DIR'] == '.' |
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
# How does one define a hash with a name but no keys/values? | |
--- | |
site_repos_ppa: | |
'ppa:git-core/ppa': | |
'ppa:mercurial-ppa/releases': |
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
# common.yaml: | |
users: | |
ant: | |
uid: 1001 | |
realname: Andreas | |
pwhash: '$6$thesalt$thehash' | |
groups: | |
- sudo | |
- adm |
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
rm sasl_allowed_username_list | |
<% i = 0 %> | |
<% sasl_allowed_usernames.each do |username| -%> | |
<% i += 1 %> | |
set sasl_allowed_username_list/<% sprintf("%02d", i) -%> <%= username %> | |
<% 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
d-i partman-auto/disk string /dev/vda | |
d-i partman-auto-lvm/guided_size string max | |
d-i partman-auto-lvm/new_vg_name string vg_sys01 | |
d-i partman-auto-lvm/no_boot boolean true | |
d-i partman-auto/method string lvm | |
d-i partman-auto/purge_lvm_from_device boolean true | |
d-i partman/choose_partition select finish | |
d-i partman/confirm boolean true | |
d-i partman/confirm_nooverwrite boolean true | |
d-i partman/confirm_write_new_label boolean 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
default Ubuntu | |
label Ubuntu | |
kernel <%= @kernel %> | |
append initrd=<%= @initrd %> video=vga16fb:off vga16fb.modeset=0 interface=eth0 url=<%= foreman_url("provision")%> ramdisk_size=10800 root=/dev/rd/0 rw auto=true priority=critical hostname=unassigned-hostname DEBCONF_DEBUG=5 language=en locale=en_IE.UTF-8 console-setup/ask_detect=false keyboard-configuration/layoutcode=de console-keymaps-at/keymap=de-latin1-nodeadkeys keyboard-configuration/xkb-keymap=de debian-installer/country=AT debian-installer/fb=false BOOTIF=<%= mac %> |