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
# database | |
DATABASES : { | |
default : { | |
ENGINE : 'django.db.backends.mysql', | |
NAME : heart, | |
USER : heart, | |
PASSWORD : '123456', | |
HOST : stgdb01.lq, | |
OPTIONS : { | |
init_command : 'SET storage_engine=INNODB' |
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@server:~# debconf-get-selections | grep -i "grub\/" > /tmp/grub.preseed | |
root@server:~# less /tmp/grub.preseed | |
# /boot/grub/device.map has been regenerated | |
root@server:~# debconf-get-selections | grep -i grub | |
grub-pc grub-pc/kopt_extracted boolean false | |
grub-pc grub2/kfreebsd_cmdline string | |
# /boot/grub/device.map has been regenerated | |
grub-pc grub2/device_map_regenerated note | |
# GRUB install devices: | |
grub-pc grub-pc/install_devices multiselect /dev/disk/by-id/ata-VBOX_HARDDISK_VB8ca0c0c6-b3b6b95c-part1 |
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 tw_defaults { | |
class { 'sfrole_defaults': } | |
class { 'tw_users': } | |
include tw_defaults::yum_repos | |
include tw_defaults::sysctl | |
include tw_defaults::packages |
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 tw_defaults { | |
class { 'sfrole_defaults': } | |
class { 'tw_users': } | |
include tw_defaults::yum_repos | |
include tw_defaults::sysctl | |
include tw_defaults::packages |
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 tw_django::install { | |
Package { | |
ensure => installed, | |
} | |
package { [ 'python27-mod_wsgi', | |
'python27-mod_wsgi-debuginfo', | |
'libjpeg-turbo', | |
'libjpeg-turbo-devel', |
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
{ | |
"cluster_name" : "logstash", | |
"nodes" : { | |
"rSOiXQuVQUaVFCFS7mnT0g" : { | |
"timestamp" : 1375092546223, | |
"name" : "chiana", | |
"transport_address" : "inet[/10.20.30.3:9300]", | |
"hostname" : "chiana", | |
"indices" : { | |
"docs" : { |
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
diff --git a/puppet/scalefactory.com/modules/sf_defaults/lib/facter/sf_cucumber_vagrant.rb b/puppet/scalefactory.com/modules/sf_defaults/lib/facter/sf_cucumber_vagrant.rb | |
new file mode 100644 | |
index 0000000..7c04456 | |
--- /dev/null | |
+++ b/puppet/scalefactory.com/modules/sf_defaults/lib/facter/sf_cucumber_vagrant.rb | |
@@ -0,0 +1,21 @@ | |
+# Copyright 2012-2013 The Scale Factory Limited. All rights reserved. | |
+ | |
+# Check if puppet running inside a vagrant box | |
+ |
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
diff --git a/sf-bootstrap b/sf-bootstrap | |
index f39cb77..b9e0343 100755 | |
--- a/sf-bootstrap | |
+++ b/sf-bootstrap | |
@@ -452,10 +452,14 @@ class BootstrapBase | |
def add_automation_to_path | |
log_info( "Writing default path to /etc/environment" ) | |
- File.open( '/etc/environment', 'a' ) { |f| | |
- f.puts "# Written by sf-bootstrap" |
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
diff --git a/puppet/scalefactory.com/modules/sf_activemq/templates/activemq.xml b/puppet/scalefactory.com/modules/sf_activemq/templates/activemq.xml | |
index 1cf1439..8821337 100644 | |
--- a/puppet/scalefactory.com/modules/sf_activemq/templates/activemq.xml | |
+++ b/puppet/scalefactory.com/modules/sf_activemq/templates/activemq.xml | |
@@ -15,7 +15,7 @@ | |
<!-- | |
The <broker> element is used to configure the ActiveMQ broker. | |
--> | |
- <broker xmlns="http://activemq.apache.org/schema/core" brokerName="<%= broker_name %>" dataDirectory="${activemq.base}/data" <% if @operatingsystem != 'Debian' %>destroyApplicationContextOnStop="true"<% end | |
+ <broker xmlns="http://activemq.apache.org/schema/core" brokerName="<%= broker_name %>" dataDirectory="${activemq.base}/data"> |
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
# Copyright 2012-2013 The Scale Factory Limited. All rights reserved. | |
begin | |
require 'json' | |
require 'net/http' | |
rescue LoadError | |
retry if require 'rubygems' | |
raise | |
end |