aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorDan Fandrich <danf@mageia.org>2024-01-18 16:09:10 -0800
committerDan Fandrich <danf@mageia.org>2024-01-18 16:09:10 -0800
commitc96e287499d72cb86a15c499f47dc216f5cdc737 (patch)
tree01890e25df98ce2f0e293725c32feb50ab4581a0 /modules
parentaa7a464e418c585440248b6f0a566ac55ce0bc79 (diff)
downloadpuppet-c96e287499d72cb86a15c499f47dc216f5cdc737.tar
puppet-c96e287499d72cb86a15c499f47dc216f5cdc737.tar.gz
puppet-c96e287499d72cb86a15c499f47dc216f5cdc737.tar.bz2
puppet-c96e287499d72cb86a15c499f47dc216f5cdc737.tar.xz
puppet-c96e287499d72cb86a15c499f47dc216f5cdc737.zip
Switch gitmirror files from templates to files
There are no template substitutions needed in these files, so allowing them opens the danger of substitutions happening unknowingly with future changes to these files.
Diffstat (limited to 'modules')
-rwxr-xr-xmodules/gitmirror/files/on-the-pull (renamed from modules/gitmirror/templates/on-the-pull)0
-rwxr-xr-xmodules/gitmirror/files/on-the-pull.init (renamed from modules/gitmirror/templates/on-the-pull.init)0
-rwxr-xr-xmodules/gitmirror/files/rsync-metadata.sh (renamed from modules/gitmirror/templates/rsync-metadata.sh)0
-rw-r--r--modules/gitmirror/manifests/init.pp6
4 files changed, 3 insertions, 3 deletions
diff --git a/modules/gitmirror/templates/on-the-pull b/modules/gitmirror/files/on-the-pull
index 7d3ede29..7d3ede29 100755
--- a/modules/gitmirror/templates/on-the-pull
+++ b/modules/gitmirror/files/on-the-pull
diff --git a/modules/gitmirror/templates/on-the-pull.init b/modules/gitmirror/files/on-the-pull.init
index cc256a06..cc256a06 100755
--- a/modules/gitmirror/templates/on-the-pull.init
+++ b/modules/gitmirror/files/on-the-pull.init
diff --git a/modules/gitmirror/templates/rsync-metadata.sh b/modules/gitmirror/files/rsync-metadata.sh
index 03a0fe41..03a0fe41 100755
--- a/modules/gitmirror/templates/rsync-metadata.sh
+++ b/modules/gitmirror/files/rsync-metadata.sh
diff --git a/modules/gitmirror/manifests/init.pp b/modules/gitmirror/manifests/init.pp
index 9a7559f7..c1dcd894 100644
--- a/modules/gitmirror/manifests/init.pp
+++ b/modules/gitmirror/manifests/init.pp
@@ -27,11 +27,11 @@ class gitmirror {
}
mga_common::local_script { 'on-the-pull':
- content => template('gitmirror/on-the-pull'),
+ source => 'puppet:///modules/gitmirror/on-the-pull',
}
file { '/etc/init.d/on-the-pull':
- content => template('gitmirror/on-the-pull.init'),
+ source => 'puppet:///modules/gitmirror/on-the-pull.init',
mode => '0755',
}
@@ -43,6 +43,6 @@ class gitmirror {
}
mga_common::local_script { 'gitmirror-sync-metadata':
- content => template('gitmirror/rsync-metadata.sh'),
+ source => 'puppet:///modules/gitmirror/rsync-metadata.sh',
}
}