Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Hardik Juneja
slapos
Commits
2fd13310
Commit
2fd13310
authored
Jul 21, 2017
by
Hardik Juneja
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
convert instance-pull-backup.cfg.in into jinja2 template
parent
92a9d369
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
163 additions
and
154 deletions
+163
-154
software/slaprunner/buildout.hash.cfg
software/slaprunner/buildout.hash.cfg
+2
-2
software/slaprunner/instance-runner-import.cfg.in
software/slaprunner/instance-runner-import.cfg.in
+1
-1
software/slaprunner/instance.cfg
software/slaprunner/instance.cfg
+14
-1
stack/resilient/buildout.cfg
stack/resilient/buildout.cfg
+2
-2
stack/resilient/buildout.hash.cfg
stack/resilient/buildout.hash.cfg
+3
-3
stack/resilient/instance-pull-backup.cfg.in
stack/resilient/instance-pull-backup.cfg.in
+130
-136
stack/resilient/pbsready-export.cfg.in
stack/resilient/pbsready-export.cfg.in
+6
-5
stack/resilient/pbsready-import.cfg.in
stack/resilient/pbsready-import.cfg.in
+5
-4
No files found.
software/slaprunner/buildout.hash.cfg
View file @
2fd13310
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
# not need these here).
# not need these here).
[template]
[template]
filename = instance.cfg
filename = instance.cfg
md5sum =
3cecaf1f9e4e80901447684277d59736
md5sum =
02b2af53bcffdf286cb4b30c4a1e7ba1
[template-runner]
[template-runner]
filename = instance-runner.cfg
filename = instance-runner.cfg
...
@@ -27,7 +27,7 @@ md5sum = 130193114cbbcd014af9704851410605
...
@@ -27,7 +27,7 @@ md5sum = 130193114cbbcd014af9704851410605
[instance-runner-import]
[instance-runner-import]
filename = instance-runner-import.cfg.in
filename = instance-runner-import.cfg.in
md5sum =
cc0d45128df7003d5d7f69ff290d66e1
md5sum =
724514c494eab24189ed0b5db718aefd
[template-runner-export-script]
[template-runner-export-script]
filename = template/runner-export.sh.jinja2
filename = template/runner-export.sh.jinja2
...
...
software/slaprunner/instance-runner-import.cfg.in
View file @
2fd13310
...
@@ -77,7 +77,7 @@ recipe =
...
@@ -77,7 +77,7 @@ recipe =
log-url = ${monitor-publish-parameters:monitor-base-url}/resilient/notifier-status-rss
log-url = ${monitor-publish-parameters:monitor-base-url}/resilient/notifier-status-rss
[resilient-web-takeover-cgi-script]
[resilient-web-takeover-cgi-script]
proof-signature-url = $
$
{monitor-publish-parameters:monitor-base-url}/private/resilient/backup.signature
proof-signature-url = ${monitor-publish-parameters:monitor-base-url}/private/resilient/backup.signature
[importer]
[importer]
recipe = slapos.recipe.template:jinja2
recipe = slapos.recipe.template:jinja2
...
...
software/slaprunner/instance.cfg
View file @
2fd13310
...
@@ -83,11 +83,24 @@ context =
...
@@ -83,11 +83,24 @@ context =
[instance-pull-backup]
[instance-pull-backup]
recipe = slapos.recipe.template:jinja2
recipe = slapos.recipe.template:jinja2
template = ${template-pull-backup:
outpu
t}
template = ${template-pull-backup:
targe
t}
rendered = $${buildout:directory}/template-pull-backup.cfg
rendered = $${buildout:directory}/template-pull-backup.cfg
mode = 640
mode = 640
context =
context =
key buildout_directory buildout:directory
key develop_eggs_directory buildout:develop-eggs-directory
key eggs_directory buildout:eggs-directory
raw bin_directory ${buildout:bin-directory}
raw buildout_executable ${buildout:executable}
raw template_wrapper ${template-wrapper:output}
raw dcron_location ${dcron:location}
raw logrotate_location ${logrotate:location}
raw template_monitor $${instance-monitor:rendered}
raw template_monitor $${instance-monitor:rendered}
raw gzip_location ${gzip:location}
raw openssh_location ${openssh:location}
raw notifier_feed_promise_template ${notifier-feed-promise-template:target}
raw monitor_resilient_feed_path ${template-monitor-check-resilient-feed:location}/${template-monitor-check-resilient-feed:filename}
raw dash_location ${dash:location}/bin/dash
[instance-monitor]
[instance-monitor]
recipe = slapos.recipe.template:jinja2
recipe = slapos.recipe.template:jinja2
...
...
stack/resilient/buildout.cfg
View file @
2fd13310
...
@@ -60,9 +60,9 @@ filename = pbsready-export.cfg.in
...
@@ -60,9 +60,9 @@ filename = pbsready-export.cfg.in
mode = 0644
mode = 0644
[template-pull-backup]
[template-pull-backup]
recipe = slapos.recipe.
template
recipe = slapos.recipe.
build:download
url = ${:_profile_base_location_}/instance-pull-backup.cfg.in
url = ${:_profile_base_location_}/instance-pull-backup.cfg.in
output = ${buildout:directory}/
instance-pull-backup.cfg
filename =
instance-pull-backup.cfg
mode = 0644
mode = 0644
[template-replicated]
[template-replicated]
...
...
stack/resilient/buildout.hash.cfg
View file @
2fd13310
...
@@ -19,15 +19,15 @@ md5sum = 6469cefecfeac19bf1f7cd26ab89c278
...
@@ -19,15 +19,15 @@ md5sum = 6469cefecfeac19bf1f7cd26ab89c278
[pbsready-import]
[pbsready-import]
filename = pbsready-import.cfg.in
filename = pbsready-import.cfg.in
md5sum =
d3cc6155cd70b435362320042098c9f2
md5sum =
ebbe28a5f62732185a17bb03936cc02e
[pbsready-export]
[pbsready-export]
filename = pbsready-export.cfg.in
filename = pbsready-export.cfg.in
md5sum =
c6c11db5372150019debb1ce519b907d
md5sum =
7bfec1a954fe06f9ca26ced7c06dc22e
[template-pull-backup]
[template-pull-backup]
filename = instance-pull-backup.cfg.in
filename = instance-pull-backup.cfg.in
md5sum =
6ae296394642052e56aa934bc922c80d
md5sum =
dcb88393905f2334c8351f5878859635
[template-replicated]
[template-replicated]
filename = template-replicated.cfg.in
filename = template-replicated.cfg.in
...
...
stack/resilient/instance-pull-backup.cfg.in
View file @
2fd13310
...
@@ -22,8 +22,8 @@ parts =
...
@@ -22,8 +22,8 @@ parts =
monitor-check-resilient-feed-file
monitor-check-resilient-feed-file
extends = {{ template_monitor }}
extends = {{ template_monitor }}
eggs-directory =
${buildout:eggs-directory
}
eggs-directory =
{{ eggs_directory }
}
develop-eggs-directory =
${buildout:develop-eggs-directory
}
develop-eggs-directory =
{{ develop_eggs_directory }
}
offline = true
offline = true
...
@@ -33,38 +33,38 @@ offline = true
...
@@ -33,38 +33,38 @@ offline = true
[rootdirectory]
[rootdirectory]
recipe = slapos.cookbook:mkdirectory
recipe = slapos.cookbook:mkdirectory
etc = $
$
{buildout:directory}/etc
etc = ${buildout:directory}/etc
srv = $
$
{buildout:directory}/srv
srv = ${buildout:directory}/srv
bin = $
$
{buildout:directory}/bin
bin = ${buildout:directory}/bin
tmp = $
$
{buildout:directory}/tmp
tmp = ${buildout:directory}/tmp
var = $
$
{buildout:directory}/var
var = ${buildout:directory}/var
[basedirectory]
[basedirectory]
recipe = slapos.cookbook:mkdirectory
recipe = slapos.cookbook:mkdirectory
log = $
$
{rootdirectory:var}/log
log = ${rootdirectory:var}/log
services = $
$
{rootdirectory:etc}/service
services = ${rootdirectory:etc}/service
run = $
$
{rootdirectory:var}/run
run = ${rootdirectory:var}/run
backup = $
$
{rootdirectory:srv}/backup
backup = ${rootdirectory:srv}/backup
promises = $
$
{rootdirectory:etc}/promise
promises = ${rootdirectory:etc}/promise
ssh-home = $
$
{rootdirectory:etc}/ssh
ssh-home = ${rootdirectory:etc}/ssh
notifier = $
$
{rootdirectory:etc}/notifier
notifier = ${rootdirectory:etc}/notifier
[directory]
[directory]
recipe = slapos.cookbook:mkdirectory
recipe = slapos.cookbook:mkdirectory
logrotate-entries = $
$
{rootdirectory:etc}/logrotate.d
logrotate-entries = ${rootdirectory:etc}/logrotate.d
logrotate-backup = $
$
{basedirectory:backup}/logrotate
logrotate-backup = ${basedirectory:backup}/logrotate
cronstamps = $
$
{rootdirectory:etc}/cronstamps
cronstamps = ${rootdirectory:etc}/cronstamps
cron-entries = $
$
{rootdirectory:etc}/cron.d
cron-entries = ${rootdirectory:etc}/cron.d
crontabs = $
$
{rootdirectory:etc}/crontabs
crontabs = ${rootdirectory:etc}/crontabs
cronoutput = $
$
{basedirectory:log}/cron-ouput
cronoutput = ${basedirectory:log}/cron-ouput
pbs-backup = $
$
{basedirectory:backup}/pbs
pbs-backup = ${basedirectory:backup}/pbs
sshkeys = $
$
{rootdirectory:srv}/sshkeys
sshkeys = ${rootdirectory:srv}/sshkeys
pbs-wrappers = $
$
{rootdirectory:bin}/pbs
pbs-wrappers = ${rootdirectory:bin}/pbs
dot-ssh = $
$
{basedirectory:ssh-home}/.ssh
dot-ssh = ${basedirectory:ssh-home}/.ssh
notifier-feeds = $
$
{basedirectory:notifier}/feeds
notifier-feeds = ${basedirectory:notifier}/feeds
notifier-callbacks = $
$
{basedirectory:notifier}/callbacks
notifier-callbacks = ${basedirectory:notifier}/callbacks
notifier-status-items = $
$
{basedirectory:notifier}/status-items
notifier-status-items = ${basedirectory:notifier}/status-items
monitor-resilient = $
$
{monitor-directory:private}/resilient
monitor-resilient = ${monitor-directory:private}/resilient
#----------------
#----------------
...
@@ -73,30 +73,30 @@ monitor-resilient = $${monitor-directory:private}/resilient
...
@@ -73,30 +73,30 @@ monitor-resilient = $${monitor-directory:private}/resilient
[equeue]
[equeue]
recipe = slapos.cookbook:equeue
recipe = slapos.cookbook:equeue
socket = $
$
{basedirectory:run}/equeue.sock
socket = ${basedirectory:run}/equeue.sock
lockfile = $
$
{basedirectory:run}/equeue.lock
lockfile = ${basedirectory:run}/equeue.lock
log = $
$
{basedirectory:log}/equeue.log
log = ${basedirectory:log}/equeue.log
database = $
$
{rootdirectory:srv}/equeue.db
database = ${rootdirectory:srv}/equeue.db
wrapper = $
$
{basedirectory:services}/equeue
wrapper = ${basedirectory:services}/equeue
equeue-binary =
${buildout:bin-directory
}/equeue
equeue-binary =
{{ bin_directory }
}/equeue
[notifier-port]
[notifier-port]
recipe = slapos.cookbook:free_port
recipe = slapos.cookbook:free_port
minimum = 8088
minimum = 8088
maximum = 8097
maximum = 8097
ip = $
$
{notifier:host}
ip = ${notifier:host}
# notifier.notify adds the [exporter, notifier] to the execution queue
# notifier.notify adds the [exporter, notifier] to the execution queue
# notifier.notify.callback sets up a callback
# notifier.notify.callback sets up a callback
[notifier]
[notifier]
recipe = slapos.recipe.template:jinja2
recipe = slapos.recipe.template:jinja2
template =
${template-wrapper:output
}
template =
{{ template_wrapper }
}
rendered = $
$
{:wrapper}
rendered = ${:wrapper}
wrapper = $
$
{basedirectory:services}/notifier
wrapper = ${basedirectory:services}/notifier
mode = 0700
mode = 0700
command =
${buildout:bin-directory}/pubsubserver --callbacks $${directory:notifier-callbacks} --feeds $${directory:notifier-feeds} --equeue-socket $${equeue:socket} --logfile $${basedirectory:log}/notifier.log $${:host} $
${:port}
command =
{{ bin_directory }}/pubsubserver --callbacks ${directory:notifier-callbacks} --feeds ${directory:notifier-feeds} --equeue-socket ${equeue:socket} --logfile ${basedirectory:log}/notifier.log ${:host}
${:port}
host = $
$
{slap-network-information:global-ipv6}
host = ${slap-network-information:global-ipv6}
port = $
$
{notifier-port:port}
port = ${notifier-port:port}
context =
context =
key content notifier:command
key content notifier:command
...
@@ -104,7 +104,7 @@ context =
...
@@ -104,7 +104,7 @@ context =
<= logrotate
<= logrotate
recipe = slapos.cookbook:logrotate.d
recipe = slapos.cookbook:logrotate.d
name = equeue
name = equeue
log = $
$
{equeue:log}
log = ${equeue:log}
frequency = daily
frequency = daily
rotate-num = 30
rotate-num = 30
...
@@ -118,40 +118,40 @@ rotate-num = 30
...
@@ -118,40 +118,40 @@ rotate-num = 30
<= notifier
<= notifier
recipe = slapos.cookbook:pbs
recipe = slapos.cookbook:pbs
client = true
client = true
feeds = $
$
{directory:notifier-feeds}
feeds = ${directory:notifier-feeds}
callbacks = $
$
{directory:notifier-callbacks}
callbacks = ${directory:notifier-callbacks}
equeue-socket = $
$
{equeue:socket}
equeue-socket = ${equeue:socket}
notifier-binary =
${buildout:bin-directory
}/pubsubnotifier
notifier-binary =
{{ bin_directory }
}/pubsubnotifier
rdiffbackup-binary =
${buildout:bin-directory
}/rdiff-backup
rdiffbackup-binary =
{{ bin_directory }
}/rdiff-backup
sshclient-binary = $
$
{openssh-client:wrapper-path}
sshclient-binary = ${openssh-client:wrapper-path}
known-hosts = $
$
{directory:dot-ssh}/known_hosts
known-hosts = ${directory:dot-ssh}/known_hosts
promises-directory = $
$
{basedirectory:promises}
promises-directory = ${basedirectory:promises}
directory = $
$
{directory:pbs-backup}
directory = ${directory:pbs-backup}
cron-entries = $
$
{cron:cron-entries}
cron-entries = ${cron:cron-entries}
wrappers-directory = $
$
{directory:pbs-wrappers}
wrappers-directory = ${directory:pbs-wrappers}
run-directory = $
$
{basedirectory:run}
run-directory = ${basedirectory:run}
pull-push-maximum-run = 5
pull-push-maximum-run = 5
# XXX: this should be named "notifier-host"
# XXX: this should be named "notifier-host"
notifier-url = http://[$
${notifier:host}]:$
${notifier:port}
notifier-url = http://[$
{notifier:host}]:
${notifier:port}
slave-instance-list = $
$
{slap-parameter:slave_instance_list}
slave-instance-list = ${slap-parameter:slave_instance_list}
ignore-known-hosts-file = $
$
{slap-parameter:ignore-known-hosts-file}
ignore-known-hosts-file = ${slap-parameter:ignore-known-hosts-file}
# To get a verbose feed about PBS state
# To get a verbose feed about PBS state
instance-root-name = $
$
{instance-info-parameters:root-name}
instance-root-name = ${instance-info-parameters:root-name}
log-url = $
$
{monitor-publish-parameters:monitor-base-url}/private/notifier/
log-url = ${monitor-publish-parameters:monitor-base-url}/private/notifier/
status-item-directory = $
$
{directory:notifier-status-items}
status-item-directory = ${directory:notifier-status-items}
[pbs-resilient-status-feed]
[pbs-resilient-status-feed]
recipe = slapos.cookbook:wrapper
recipe = slapos.cookbook:wrapper
command-line =
${buildout:directory}/bin/generatefeed --output $${:feed-path} --status-item-path $${pbs:status-item-directory} --title "Status feed for $${instance-info-parameters:root-name}-PBS" --link $
${pbs:log-url}
command-line =
{{ buildout_directory }}/bin/generatefeed --output ${:feed-path} --status-item-path ${pbs:status-item-directory} --title "Status feed for ${instance-info-parameters:root-name}-PBS" --link
${pbs:log-url}
feed-path = $
$
{directory:monitor-resilient}/pbs-status-rss
feed-path = ${directory:monitor-resilient}/pbs-status-rss
wrapper-path = $
$
{rootdirectory:bin}/resilient-genstatusrss.py
wrapper-path = ${rootdirectory:bin}/resilient-genstatusrss.py
[cron-pbs-status-feed]
[cron-pbs-status-feed]
<= cron
<= cron
recipe = slapos.cookbook:cron.d
recipe = slapos.cookbook:cron.d
name = resilient-pbs-status-feed
name = resilient-pbs-status-feed
frequency = */5 * * * *
frequency = */5 * * * *
command = $
$
{pbs-resilient-status-feed:wrapper-path}
command = ${pbs-resilient-status-feed:wrapper-path}
#----------------
#----------------
#--
#--
...
@@ -159,17 +159,17 @@ command = $${pbs-resilient-status-feed:wrapper-path}
...
@@ -159,17 +159,17 @@ command = $${pbs-resilient-status-feed:wrapper-path}
[cron]
[cron]
recipe = slapos.cookbook:cron
recipe = slapos.cookbook:cron
dcrond-binary =
${dcron:location
}/sbin/crond
dcrond-binary =
{{ dcron_location }
}/sbin/crond
cron-entries = $
$
{directory:cron-entries}
cron-entries = ${directory:cron-entries}
crontabs = $
$
{directory:crontabs}
crontabs = ${directory:crontabs}
cronstamps = $
$
{directory:cronstamps}
cronstamps = ${directory:cronstamps}
catcher = $
$
{cron-simplelogger:wrapper}
catcher = ${cron-simplelogger:wrapper}
binary = $
$
{basedirectory:services}/crond
binary = ${basedirectory:services}/crond
[cron-simplelogger]
[cron-simplelogger]
recipe = slapos.cookbook:simplelogger
recipe = slapos.cookbook:simplelogger
wrapper = $
$
{rootdirectory:bin}/cron_simplelogger
wrapper = ${rootdirectory:bin}/cron_simplelogger
log = $
$
{basedirectory:log}/crond.log
log = ${basedirectory:log}/crond.log
#----------------
#----------------
...
@@ -181,26 +181,26 @@ log = $${basedirectory:log}/crond.log
...
@@ -181,26 +181,26 @@ log = $${basedirectory:log}/crond.log
recipe = slapos.cookbook:cron.d
recipe = slapos.cookbook:cron.d
name = logrotate
name = logrotate
frequency = 0 0 * * *
frequency = 0 0 * * *
command = $
$
{logrotate:wrapper}
command = ${logrotate:wrapper}
[logrotate]
[logrotate]
recipe = slapos.cookbook:logrotate
recipe = slapos.cookbook:logrotate
# Binaries
# Binaries
logrotate-binary =
${logrotate:location
}/usr/sbin/logrotate
logrotate-binary =
{{ logrotate_location }
}/usr/sbin/logrotate
gzip-binary =
${gzip:location
}/bin/gzip
gzip-binary =
{{ gzip_location }
}/bin/gzip
gunzip-binary =
${gzip:location
}/bin/gunzip
gunzip-binary =
{{ gzip_location }
}/bin/gunzip
# Directories
# Directories
wrapper = $
$
{rootdirectory:bin}/logrotate
wrapper = ${rootdirectory:bin}/logrotate
conf = $
$
{rootdirectory:etc}/logrotate.conf
conf = ${rootdirectory:etc}/logrotate.conf
logrotate-entries = $
$
{directory:logrotate-entries}
logrotate-entries = ${directory:logrotate-entries}
backup = $
$
{directory:logrotate-backup}
backup = ${directory:logrotate-backup}
state-file = $
$
{rootdirectory:srv}/logrotate.status
state-file = ${rootdirectory:srv}/logrotate.status
[logrotate-entry-cron]
[logrotate-entry-cron]
<= logrotate
<= logrotate
recipe = slapos.cookbook:logrotate.d
recipe = slapos.cookbook:logrotate.d
name = cron
name = cron
log = $
$
{cron-simplelogger:log}
log = ${cron-simplelogger:log}
frequency = daily
frequency = daily
rotate-num = 30
rotate-num = 30
...
@@ -208,14 +208,14 @@ rotate-num = 30
...
@@ -208,14 +208,14 @@ rotate-num = 30
recipe = collective.recipe.template
recipe = collective.recipe.template
mode = 600
mode = 600
input = inline:
input = inline:
$
$
{directory:notifier-feeds}/* {
${directory:notifier-feeds}/* {
rotate 5
rotate 5
weekly
weekly
nocompress
nocompress
missingok
missingok
olddir $
$
{directory:logrotate-backup}
olddir ${directory:logrotate-backup}
}
}
output = $
$
{logrotate:logrotate-entries}/notifier
output = ${logrotate:logrotate-entries}/notifier
#----------------
#----------------
#--
#--
...
@@ -223,25 +223,25 @@ output = $${logrotate:logrotate-entries}/notifier
...
@@ -223,25 +223,25 @@ output = $${logrotate:logrotate-entries}/notifier
[sshkeys-directory]
[sshkeys-directory]
recipe = slapos.cookbook:mkdirectory
recipe = slapos.cookbook:mkdirectory
requests = $
$
{directory:sshkeys}/openssl-requests
requests = ${directory:sshkeys}/openssl-requests
keys = $
$
{directory:sshkeys}/openssl-keys
keys = ${directory:sshkeys}/openssl-keys
[pbs-sshkeys-authority]
[pbs-sshkeys-authority]
recipe = slapos.cookbook:sshkeys_authority
recipe = slapos.cookbook:sshkeys_authority
request-directory = $
$
{sshkeys-directory:requests}
request-directory = ${sshkeys-directory:requests}
keys-directory = $
$
{sshkeys-directory:keys}
keys-directory = ${sshkeys-directory:keys}
wrapper = $
$
{basedirectory:services}/pbs_sshkeys_authority
wrapper = ${basedirectory:services}/pbs_sshkeys_authority
keygen-binary =
${openssh:location
}/bin/ssh-keygen
keygen-binary =
{{ openssh_location }
}/bin/ssh-keygen
[sshkeys-openssh]
[sshkeys-openssh]
<= pbs-sshkeys-authority
<= pbs-sshkeys-authority
recipe = slapos.cookbook:sshkeys_authority.request
recipe = slapos.cookbook:sshkeys_authority.request
name = pbs-client
name = pbs-client
type = rsa
type = rsa
executable = $
$
{openssh-client:wrapper-path}
executable = ${openssh-client:wrapper-path}
public-key = $
$
{openssh-client:identity-file}.pub
public-key = ${openssh-client:identity-file}.pub
private-key = $
$
{openssh-client:identity-file}
private-key = ${openssh-client:identity-file}
wrapper = $
$
{rootdirectory:bin}/do_backup
wrapper = ${rootdirectory:bin}/do_backup
#----------------
#----------------
...
@@ -250,10 +250,10 @@ wrapper = $${rootdirectory:bin}/do_backup
...
@@ -250,10 +250,10 @@ wrapper = $${rootdirectory:bin}/do_backup
[openssh-client]
[openssh-client]
recipe = slapos.cookbook:wrapper
recipe = slapos.cookbook:wrapper
home = $
$
{basedirectory:ssh-home}
home = ${basedirectory:ssh-home}
identity-file = $
$
{:home}/id_rsa
identity-file = ${:home}/id_rsa
command-line =
${openssh:location}/bin/ssh -T -o "UserKnownHostsFile $${pbs:known-hosts}" -i $
${:identity-file}
command-line =
{{ openssh_location }}/bin/ssh -T -o "UserKnownHostsFile ${pbs:known-hosts}" -i
${:identity-file}
wrapper-path = $
$
{rootdirectory:bin}/ssh
wrapper-path = ${rootdirectory:bin}/ssh
parameters-extra = true
parameters-extra = true
...
@@ -267,7 +267,7 @@ ignore-known-hosts-file = false
...
@@ -267,7 +267,7 @@ ignore-known-hosts-file = false
monitor-cors-domains =
monitor-cors-domains =
monitor-httpd-port = 8070
monitor-httpd-port = 8070
monitor-title = PBS Instance
monitor-title = PBS Instance
monitor-password = $
$
{monitor-htpasswd:passwd}
monitor-password = ${monitor-htpasswd:passwd}
monitor-username = admin
monitor-username = admin
#----------------
#----------------
...
@@ -277,10 +277,10 @@ monitor-username = admin
...
@@ -277,10 +277,10 @@ monitor-username = admin
[backup-checksum-integrity-promise]
[backup-checksum-integrity-promise]
recipe = slapos.recipe.template:jinja2
recipe = slapos.recipe.template:jinja2
template = inline:
template = inline:
#!
${dash:location}/bin/dash
#!
{{ dash_location }}
# Raise an error if signatures are different
# Raise an error if signatures are different
# Error cannot be deduced if files do not exist
# Error cannot be deduced if files do not exist
cd $
$
{directory:pbs-backup}
cd ${directory:pbs-backup}
if [ ! -f "proof.signature" ]; then exit 0; fi
if [ ! -f "proof.signature" ]; then exit 0; fi
backup_signature=$(find . -maxdepth 2 -name backup.signature)
backup_signature=$(find . -maxdepth 2 -name backup.signature)
if [ -z "$backup_signature" ]; then
if [ -z "$backup_signature" ]; then
...
@@ -294,38 +294,38 @@ template = inline:
...
@@ -294,38 +294,38 @@ template = inline:
exit 1
exit 1
fi
fi
fi
fi
rendered = $
$
{basedirectory:promises}/backup-checksum-integrity
rendered = ${basedirectory:promises}/backup-checksum-integrity
mode = 700
mode = 700
[resilient-genstatrss-wrapper]
[resilient-genstatrss-wrapper]
recipe = slapos.cookbook:wrapper
recipe = slapos.cookbook:wrapper
# XXX - hard-coded Urls
# XXX - hard-coded Urls
command-line =
${buildout:directory}/bin/rdiffbackup.genstatrss --output '$${monitor-directory:public}/resilient-feed' --rdiff_backup_data_folder '$${pbs:rdiff-backup-data-folder}' --feed_url '$
${monitor-conf-parameters:base-url}/public/resilient-feed'
command-line =
{{ buildout_directory }}/bin/rdiffbackup.genstatrss --output '${monitor-directory:public}/resilient-feed' --rdiff_backup_data_folder '${pbs:rdiff-backup-data-folder}' --feed_url '
${monitor-conf-parameters:base-url}/public/resilient-feed'
wrapper-path = $
$
{directory:bin}/resilient-genstatrss.py
wrapper-path = ${directory:bin}/resilient-genstatrss.py
[pbs-push-history-log]
[pbs-push-history-log]
recipe = cns.recipe.symlink
recipe = cns.recipe.symlink
symlink = $
${pbs:rdiff-backup-data-folder}/restore.log = $
${basedirectory:log}/pbs-push-history-log
symlink = $
{pbs:rdiff-backup-data-folder}/restore.log =
${basedirectory:log}/pbs-push-history-log
[backup-signature-link]
[backup-signature-link]
recipe = cns.recipe.symlink
recipe = cns.recipe.symlink
symlink = $
${directory:pbs-backup}/proof.signature = $
${directory:monitor-resilient}/backup.signature
symlink = $
{directory:pbs-backup}/proof.signature =
${directory:monitor-resilient}/backup.signature
[pull-push-stalled-promise]
[pull-push-stalled-promise]
recipe = slapos.cookbook:wrapper
recipe = slapos.cookbook:wrapper
# # time-buffer is 24h (+1h of latitude)
# # time-buffer is 24h (+1h of latitude)
command-line =
${buildout:bin-directory}/check-feed-as-promise --feed-path $
${pbs-resilient-status-feed:feed-path} --title --ok-pattern 'OK' --time-buffer 90000
command-line =
{{ bin_directory }}/check-feed-as-promise --feed-path
${pbs-resilient-status-feed:feed-path} --title --ok-pattern 'OK' --time-buffer 90000
wrapper-path = $
$
{basedirectory:promises}/stalled-pull-push
wrapper-path = ${basedirectory:promises}/stalled-pull-push
[notifier-feed-status-promise]
[notifier-feed-status-promise]
recipe = slapos.recipe.template:jinja2
recipe = slapos.recipe.template:jinja2
template =
${notifier-feed-promise-template:target
}
template =
{{ notifier_feed_promise_template }
}
rendered = $
$
{basedirectory:promises}/notifier-feed-check-malformed-or-failure.py
rendered = ${basedirectory:promises}/notifier-feed-check-malformed-or-failure.py
mode = 700
mode = 700
context =
context =
key notifier_feed_directory directory:notifier-feeds
key notifier_feed_directory directory:notifier-feeds
raw base_url http://[$
${notifier:host}]:$
${notifier:port}/get/
raw base_url http://[$
{notifier:host}]:
${notifier:port}/get/
raw python_executable
${buildout:executable
}
raw python_executable
{{ buildout_executable }
}
#----------------
#----------------
#--
#--
...
@@ -333,44 +333,38 @@ context =
...
@@ -333,44 +333,38 @@ context =
[publish-connection-information]
[publish-connection-information]
recipe = slapos.cookbook:publish
recipe = slapos.cookbook:publish
ssh-key = $
$
{sshkeys-openssh:public-key-value}
ssh-key = ${sshkeys-openssh:public-key-value}
notification-url = http://[$
${notifier:host}]:$
${notifier:port}/notify
notification-url = http://[$
{notifier:host}]:
${notifier:port}/notify
feeds-url = http://[$
${notifier:host}]:$
${notifier:port}/get/
feeds-url = http://[$
{notifier:host}]:
${notifier:port}/get/
monitor-base-url = $
$
{monitor-publish-parameters:monitor-base-url}
monitor-base-url = ${monitor-publish-parameters:monitor-base-url}
monitor-url = $
$
{monitor-publish-parameters:monitor-url}
monitor-url = ${monitor-publish-parameters:monitor-url}
monitor-user = $
$
{monitor-publish-parameters:monitor-user}
monitor-user = ${monitor-publish-parameters:monitor-user}
monitor-password = $
$
{monitor-publish-parameters:monitor-password}
monitor-password = ${monitor-publish-parameters:monitor-password}
#----------------
#----------------
#--
#--
#-- Monitor
#-- Monitor
[monitor-instance-parameter]
[monitor-instance-parameter]
monitor-httpd-port = $
$
{slap-parameter:monitor-httpd-port}
monitor-httpd-port = ${slap-parameter:monitor-httpd-port}
monitor-title = $
$
{slap-parameter:monitor-title}
monitor-title = ${slap-parameter:monitor-title}
cors-domains = $
$
{slap-parameter:monitor-cors-domains}
cors-domains = ${slap-parameter:monitor-cors-domains}
username = $
$
{slap-parameter:monitor-username}
username = ${slap-parameter:monitor-username}
password = $
$
{slap-parameter:monitor-password}
password = ${slap-parameter:monitor-password}
[monitor-conf-parameters]
[monitor-conf-parameters]
private-path-list +=
private-path-list +=
$
$
{directory:logrotate-backup}
${directory:logrotate-backup}
$
$
{basedirectory:log}
${basedirectory:log}
[monitor-check-resilient-feed-file]
[monitor-check-resilient-feed-file]
recipe = slapos.recipe.template:jinja2
recipe = slapos.recipe.template:jinja2
template =
${template-monitor-check-resilient-feed:location}/${template-monitor-check-resilient-feed:filename
}
template =
{{ monitor_resilient_feed_path }
}
rendered = $
$
{monitor-directory:reports}/check-create-resilient-feed-files
rendered = ${monitor-directory:reports}/check-create-resilient-feed-files
mode = 700
mode = 700
context =
context =
key input_feed_directory directory:notifier-feeds
key input_feed_directory directory:notifier-feeds
key monitor_feed_directory monitor-directory:public
key monitor_feed_directory monitor-directory:public
key base_url publish-connection-information:feeds-url
key base_url publish-connection-information:feeds-url
raw python_executable
${buildout:executable
}
raw python_executable
{{ buildout_executable }
}
[instance-monitor]
recipe = slapos.recipe.template:jinja2
template = ${monitor2-template:output}
rendered = $${buildout:directory}/template-monitor.cfg
extensions = jinja2.ext.do
mode = 0644
stack/resilient/pbsready-export.cfg.in
View file @
2fd13310
...
@@ -21,10 +21,11 @@ maximum = 22209
...
@@ -21,10 +21,11 @@ maximum = 22209
ip = ${slap-network-information:global-ipv6}
ip = ${slap-network-information:global-ipv6}
[notifier-port]
[notifier-port]
recipe = slapos.cookbook:free_port
port = 65529
minimum = 65526
#recipe = slapos.cookbook:free_port
maximum = 65535
#minimum = 65526
ip = ${notifier:host}
#maximum = 65535
#ip = ${notifier:host}
[resilient-publish-connection-parameter]
[resilient-publish-connection-parameter]
notification-id = http://[${notifier:host}]:${notifier:port}/get/${notifier-exporter:name}
notification-id = http://[${notifier:host}]:${notifier:port}/get/${notifier-exporter:name}
...
...
stack/resilient/pbsready-import.cfg.in
View file @
2fd13310
...
@@ -34,10 +34,11 @@ ip = $${slap-network-information:global-ipv6}
...
@@ -34,10 +34,11 @@ ip = $${slap-network-information:global-ipv6}
# Define port of notifier (same reason)
# Define port of notifier (same reason)
[notifier-port]
[notifier-port]
recipe = slapos.cookbook:free_port
port = 65517
minimum = 65516
#recipe = slapos.cookbook:free_port
maximum = 65525
#minimum = 65516
ip = $${notifier:host}
#maximum = 65525
#ip = $${notifier:host}
[import-on-notification]
[import-on-notification]
# notifier.callback runs a script when a notification (sent by a parent PBS)
# notifier.callback runs a script when a notification (sent by a parent PBS)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment