Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mcollective own folder permission on Windows #216

Closed
lud97x opened this issue Jan 5, 2019 · 1 comment
Closed

mcollective own folder permission on Windows #216

lud97x opened this issue Jan 5, 2019 · 1 comment
Labels
Projects

Comments

@lud97x
Copy link

lud97x commented Jan 5, 2019

Hello,

Puppet keeps changing the permission mode for the mcollective folders on windows.

PS C:\Windows\system32> puppet agent -t -v
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Loading facts
Info: Caching catalog for xxxxxxxxxxxxxxxxxxxxxxxxxxx
Info: Applying configuration version '1546718289'
Notice: /Stage[main]/Mcollective::Config/File[C:/ProgramData/PuppetLabs/mcollective]/mode: mode changed '0775' to '0755'
Notice: /Stage[main]/Mcollective::Config/File[C:/ProgramData/PuppetLabs/mcollective/etc]/mode: mode changed '0775' to '0
755'
Notice: /Stage[main]/Mcollective::Config/File[C:/ProgramData/PuppetLabs/mcollective/var]/mode: mode changed '0775' to '0
755'
Notice: /Stage[main]/Mcollective::Config/File[C:/ProgramData/PuppetLabs/mcollective/var/log]/mode: mode changed '0775' t
o '0755'
Notice: Applied catalog in 17.43 seconds
PS C:\Windows\system32> puppet agent -t -v
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Loading facts
Info: Caching catalog for xxxxxxxxxxxxxxxxxxxxxxxxxx
Info: Applying configuration version '1546718331'
Notice: /Stage[main]/Mcollective::Config/File[C:/ProgramData/PuppetLabs/mcollective]/mode: mode changed '0775' to '0755'
Notice: /Stage[main]/Mcollective::Config/File[C:/ProgramData/PuppetLabs/mcollective/etc]/mode: mode changed '0775' to '0
755'
Notice: /Stage[main]/Mcollective::Config/File[C:/ProgramData/PuppetLabs/mcollective/var]/mode: mode changed '0775' to '0
755'
Notice: /Stage[main]/Mcollective::Config/File[C:/ProgramData/PuppetLabs/mcollective/var/log]/mode: mode changed '0775' t
o '0755'
Notice: Applied catalog in 15.04 seconds

My workarround was to not try to manage the mode for windows:

case $facts['kernel'] {
'Linux':
{
$mcollective::required_directories.each |$dir| {
file{$dir:
ensure => "directory",
owner => $mcollective::plugin_owner,
group => $mcollective::plugin_group,
mode => "0755"
}
}
}
'windows':
{
$mcollective::required_directories.each |$dir| {
file{$dir:
ensure => "directory",
owner => $mcollective::plugin_owner,
group => $mcollective::plugin_group,
}
}
}
}

@ripienaar ripienaar added the bug label Jan 5, 2019
@ripienaar ripienaar added this to BACKLOG in Work Board via automation Jan 5, 2019
@ripienaar ripienaar moved this from BACKLOG to NEXT in Work Board Jan 5, 2019
@lud97x
Copy link
Author

lud97x commented Jan 5, 2019

Hello,

For windows with the mode '0775' it works too.

$mcollective::required_directories.each|$dir| {
file{$dir:
ensure => "directory",
owner => $mcollective::plugin_owner,
group => $mcollective::plugin_group,
mode => "0775",
}
}

ripienaar added a commit to ripienaar/puppet-mcollective that referenced this issue Jan 16, 2019
ripienaar added a commit that referenced this issue Jan 16, 2019
(#216) ensure config dir permissions do not flip flop on windows
Work Board automation moved this from NEXT to TEST Jan 16, 2019
@ripienaar ripienaar moved this from TEST to Ready for Release in Work Board Jan 23, 2019
@ripienaar ripienaar moved this from Ready for Release to DONE in Work Board Mar 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Work Board
  
DONE
Development

No branches or pull requests

2 participants