Replies: 1 comment
-
after a little trial and error und look in a yaml array example, i found out, how it works. source => [ (puppet is yaml, you now ;-)) This is , how it works : ` 'c:\Programdata\puppet\Repository\Disable-IpV6' The new/changed file (from module source) , must be the first, because, if there are files with the same name in different sources, the first available source will be used. |
Beta Was this translation helpful? Give feedback.
-
Hello, im new to puppet und try to implement a transfer of packagefiles and installscripts in one file Statement, because of the same target. This works in a windows deployment. There are two sources (directorys), one for the packagefiles in puppet///application and one for the scripts AppInstall.ps1 /AppUninstall.ps1 from puppet//modules . Every source works for its own, but if i put this together, there are dependency errors.
this is in the common.yaml as example
`
disable IpV6
myprofile::file:
'c:\Programdata\puppet\Repository\Disable-IpV6'
ensure: directory
source: puppet:///module/myprofile/Disable-IpV6
puppet:///Applications/windows/Disable-IpV6
sourceselect: all
recurse: true
purge: true
force: true
#-------------
`
The AppInstall.ps1 file (first version) is also in the Source Puppet///Application und must be overwritten by the module source.
As i read , then the module source must be the first.
A little advise will be helpfull, Thank you.
Beta Was this translation helpful? Give feedback.
All reactions