From c96e287499d72cb86a15c499f47dc216f5cdc737 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Thu, 18 Jan 2024 16:09:10 -0800 Subject: 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. --- modules/gitmirror/manifests/init.pp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/gitmirror/manifests/init.pp') 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', } } -- cgit v1.2.1