Add hiera param to disable rccn vcsrepo
In a development, you may not want puppet to change the remote and branch in the rccn repo, so now you can disable that by setting the hiera param 'notouchrepo' - which cause the repo to rnu with a schedule of 'never'
This commit is contained in:
parent
700b1a4fec
commit
3ee2735019
1 changed files with 12 additions and 1 deletions
|
@ -18,6 +18,7 @@ class rhizo_base {
|
|||
|
||||
# Configuration settings
|
||||
$notouchcron = hiera('rhizo::notouchcron', 0)
|
||||
$notouchrepo = hiera('rhizo::notouchrepo', 0)
|
||||
$use_ups = hiera('rhizo::use_ups')
|
||||
$rhizomatica_dir = hiera('rhizo::rhizomatica_dir')
|
||||
$hlr_db = hiera('rhizo::hlr_db', '/var/lib/osmocom/hlr.db')
|
||||
|
@ -266,6 +267,10 @@ schedule { 'repo':
|
|||
repeat => 1,
|
||||
}
|
||||
|
||||
schedule { 'never':
|
||||
period => never,
|
||||
}
|
||||
|
||||
#Rhizomatica scripts
|
||||
file { '/home/rhizomatica/bin':
|
||||
ensure => directory,
|
||||
|
@ -354,8 +359,14 @@ schedule { 'repo':
|
|||
require => File['/var/rhizo_backups'],
|
||||
}
|
||||
|
||||
if ($notouchrepo == "0") {
|
||||
$rsched = "always"
|
||||
} else {
|
||||
$rsched = "never"
|
||||
}
|
||||
|
||||
vcsrepo { '/var/rhizomatica':
|
||||
schedule => 'always',
|
||||
schedule => $rsched,
|
||||
ensure => latest,
|
||||
provider => git,
|
||||
source => 'git@dev.rhizomatica.org:rhizomatica/rccn.git',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue