Skip to content

Instantly share code, notes, and snippets.

@dnaeon
Created February 29, 2012 12:38
Show Gist options
  • Save dnaeon/1940520 to your computer and use it in GitHub Desktop.
Save dnaeon/1940520 to your computer and use it in GitHub Desktop.
swiftest configuration
# vim: ts=8:sts=8:noexpandtab
control:
AddInstallable = ( copy_new_conf )
swiftest_data = ( "/var/lib/swiftest" )
swiftest_conf = ( "/etc/swiftest/config" )
filebridge_conf = ( "/etc/swiftest-filebridge" )
test_env::
profile_path = ( "/mnt/dlog/pintail/swiftest/profile-test.xml" )
testscape_host = ( "tscape-test.colo.elex.be" )
uat_env::
profile_path = ( "/mnt/dlog/pintail/swiftest/profile-uat.xml" )
testscape_host = ( "tscape-uat.colo.elex.be" )
prod_env::
profile_path = ( "/mnt/dlog/pintail/swiftest/profile.xml" )
testscape_host = ( "tscape.colo.elex.be" )
erfurt.test_env::
profile_path = ( "/mnt/homes/pintail/swiftest/profile-test.xml" )
erfurt.uat_env::
profile_path = ( "/mnt/homes/pintail/swiftest/profile-uat.xml" )
erfurt.prod_env::
profile_path = ( "/mnt/homes/pintail/swiftest/profile.xml" )
sofia|sensors::
lot_monitor = ( "com.pintail.custom.melexis.dat.DatLotMonitorSettings" )
erfurt|pintail_postprocess_servers::
lot_monitor = ( "com.pintail.custom.melexis.dlog.DlogLotMonitorSettings" )
copy:
pintail_servers::
$(master_cfinput)/files/swiftest/config/swiftest.lax
dest=$(swiftest_data)/swiftest.lax
mode=0644
backup=false
type=checksum
owner=pintail
group=pintail
server=$(policyhost)
$(master_cfinput)/files/swiftest/licenses/swiftest.lic-${fqhost}
dest=$(swiftest_data)/swiftest.lic
mode=0644
backup=false
type=checksum
owner=pintail
group=pintail
server=$(policyhost)
$(master_cfinput)/files/swiftest/config/swiftest.xml
dest=$(swiftest_conf)/swiftest.xml.in
mode=0644
backup=false
type=checksum
owner=pintail
group=pintail
server=$(policyhost)
define=copy_new_conf
(pintail_servers.erfurt_elex_be)|(pintail_postprocess_servers)::
$(master_cfinput)/files/swiftest/translator/melexis_dlog_translator.jar
dest=$(swiftest_data)/lib/ext/melexis_dlog_translator.jar
mode=0644
backup=false
type=checksum
owner=pintail
group=pintail
server=$(policyhost)
pintail_servers.(sofia_elex_be|sensors_elex_be).!(pintail_postprocess_servers)::
$(master_cfinput)/files/swiftest/translator/melexis_dat_translator.jar
dest=$(swiftest_data)/lib/ext/melexis_dat_translator.jar
mode=0644
backup=false
type=checksum
owner=pintail
group=pintail
server=$(policyhost)
pintail_fb_servers|pintail_postprocess_servers::
$(master_cfinput)/files/swiftest/filebridge/filebridge.conf-${fqhost}
dest=$(filebridge_conf)/filebridge.conf
mode=0644
backup=false
type=checksum
owner=pintail
group=pintail
server=$(policyhost)
pintail_fb_servers::
$(master_cfinput)/files/backup/data_backup_script_pintailfbservers
dest=/etc/cron.daily/data_backup_script
owner=root
group=root
mode=755
type=checksum
server=$(policyhost)
backup=false
editfiles:
pintail_servers::
{ $(swiftest_conf)/swiftest.xml
Inform 'on'
ReplaceAll '@FULLSITE@' With '${fullsite}'
ReplaceAll '@TESTSCAPE_HOST@' With '${testscape_host}'
ReplaceAll '@PROFILE_PATH@' With '${profile_path}'
ReplaceAll '@LOT_MONITOR@' With '${lot_monitor}'
}
pintail_postprocess_servers::
{ $(swiftest_conf)/swiftest.xml
Inform 'on'
# Disable MidLot reports
ReplaceAll 'MidLot frequencyInMinutes="15" enabled="true"' With 'MidLot frequencyInMinutes="15" enabled="false"'
# Comment the ProfileServer on the Pintail Postprocess servers
SetCommentStart "<!--"
SetCommentEnd "-->"
CommentLinesMatching ".*ProfileServer.*"
}
packages:
pintail_servers::
swiftest cmp=ge version=1.2 action=install
sun-java6-jdk cmp=ge version=6-20-0lenny1 elsedefine=accept_java6_jdk_licence action=install
pintail_fb_servers|pintail_postprocess_servers::
swiftest-filebridge cmp=ge version=1.1-1 action=install
shellcommands:
accept_java6_jdk_licence::
'/bin/echo sun-java6-jdk shared/accepted-sun-dlj-v1-1 select true>/tmp/java6_jdk_licence && /usr/bin/debconf-set-selections /tmp/java6_jdk_licence'
useshell=true
inform=true
pintail_servers.copy_new_conf::
'/bin/cp -u ${swiftest_conf}/swiftest.xml.in ${swiftest_conf}/swiftest.xml'
useshell=false
timeout=300
umask=022
owner=pintail
group=pintail
inform=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment