Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/sitescripts/manifests/init.pp

Issue 29632558: #5944 - Introduce Puppet namespace adblockplus::sitescripts (Closed)
Patch Set: Created Dec. 7, 2017, 12:06 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « modules/adblockplus/manifests/sitescripts/repository.pp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/sitescripts/manifests/init.pp
diff --git a/modules/sitescripts/manifests/init.pp b/modules/sitescripts/manifests/init.pp
index de53e68a29750654c30a40d13e99f5cf1377bf00..5c75b9b987406b6ab8be3308079fe2ef5d6b2ac7 100644
--- a/modules/sitescripts/manifests/init.pp
+++ b/modules/sitescripts/manifests/init.pp
@@ -3,6 +3,8 @@ class sitescripts (
$sitescriptsini_content = '',
){
+ ensure_resource('adblockplus::sitescripts::repository', 'sitescripts')
+
@concat {'/etc/sitescripts.ini':
mode => '644',
owner => root,
@@ -23,8 +25,6 @@ class sitescripts (
}
}
- ensure_packages(['python-flup'])
-
if ($sitescriptsini_source != '') or ($sitescriptsini_content != '') {
$content = $sitescriptsini_content
@@ -43,20 +43,4 @@ class sitescripts (
$configfragments = hiera('sitescripts::configfragments', {})
create_resources('sitescripts::configfragment', $configfragments)
-
- exec { "fetch_sitescripts":
- command => "hg clone https://hg.adblockplus.org/sitescripts /opt/sitescripts",
- path => ["/usr/bin/", "/bin/"],
- require => Package['mercurial'],
- onlyif => "test ! -d /opt/sitescripts"
- }
-
- cron {"update_sitescripts":
- ensure => present,
- command => "hg pull -q -u -R /opt/sitescripts && /opt/sitescripts/ensure_dependencies.py -q",
- environment => hiera('cron::environment', []),
- user => root,
- require => Exec["fetch_sitescripts"],
- minute => [15],
- }
}
« no previous file with comments | « modules/adblockplus/manifests/sitescripts/repository.pp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld