Re: [Puppet Users] Puppet only partially applying configuration
On Tue, Jun 7, 2016 at 12:15 PM, Andrew <tisb...@gmail.com> wrote: > I have encountered a problem when running puppet on Windows. My > environment is as follows: > > Puppet master: > CentOS 6.5 > puppetserver 2.3.1 > > Client: > Windows 2012 R2 > Puppet 3.8.7 > > What happens: > > I provision a machine with razor and wait for the first Puppet run to > complete. After puppet is finished, most resources from the manifests have > been applied, but not all. I have looked in the local catalog, and the > unapplied resources are present in the catalog. I can let Puppet run > automatically as many times as I wish, and the resources will not be > applied. However, if I open PowerShell or cmd and run "puppet agent -t" the > remaining resources get applied as I would expect. There are some Puppet > errors in the Windows event viewer, but they are not errors for the > unapplied resources, and I do not do anything to address these errors > before I run Puppet manually, so they seem unrelated. > It would be good to get what you can provide for examples of things not applied and what the output of --debug --trace --verbose into a log (minus any sensitive data of course). Some general things to consider: - The Puppet service by default runs under SYSTEM, and puppet agent -t is running under the context of the user. - The Puppet service is running with administrative permissions by default. You should also be running cmd.exe/PowerShell in an administrative (elevated) shell. > > Any help would be greatly appreciated. > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/7658784c-5e04-4eb3-8c8c-e10d02de613e%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-users/7658784c-5e04-4eb3-8c8c-e10d02de613e%40googlegroups.com?utm_medium=email_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Rob Reynolds Developer, Puppet PuppetConf 2016 <http://2016.puppetconf.com/>, October 17-21, San Diego, California *Early Birds save $350* <https://www.eventbrite.com/e/puppetconf-2016-october-17-21-tickets-18750712887?discount=EarlyBird> - Register by June 30th -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK6adBP9S6%3DgGeK1%2BnKqcaz-w8doCg1hqRBb1HHOu8K99A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] clean msi installs on windows -- removing .msi file after
You could set up a file resource with ensure => absent and set up a relationship[1] to ensure it is checked after the MSI install. Another thing you would also look at with respect to Windows software management is Chocolatey[2][3]. [1] https://docs.puppet.com/puppet/latest/reference/lang_relationships.html#syntax-relationship-metaparameters [2] https://chocolatey.org/docs/getting-started#what-are-chocolatey-packages [3] https://forge.puppet.com/puppetlabs/chocolatey On Tue, May 17, 2016 at 3:43 PM, KC Johnson <mntribo...@gmail.com> wrote: > I'm new to puppet, trying to find a way to do MSI installs but ensure the > installer file is removed afterwards. Any tricks on this? > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/c06e4f27-2f0b-46c0-b11f-1dc7bfd98e12%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-users/c06e4f27-2f0b-46c0-b11f-1dc7bfd98e12%40googlegroups.com?utm_medium=email_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Rob Reynolds Developer, Puppet PuppetConf 2016 <http://2016.puppetconf.com/>, October 17-21, San Diego, California *Early Birds save $350* <https://www.eventbrite.com/e/puppetconf-2016-october-17-21-tickets-18750712887?discount=EarlyBird> - Register by June 30th -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK4NYnOHZYed-Tb8PQ2UeHGuXOsJwhUs-_s%2B9zNDf9bdaw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Need hide execution window on Windows Scheduled Tasks
On Wed, Mar 23, 2016 at 6:43 PM, Felix Frank < felix.fr...@alumni.tu-berlin.de> wrote: > Hi, > > if Puppet does not allow you to specify this preference, you could file it > as a feature request. > > https://tickets.puppetlabs.com/ > > The Windows devs at PL are quite crafty, you might get a patch faster than > you think ;-) > > Cheers, > Felix ( - throwing friends under the bus since 2013 ) Nice signature. > > > On 03/15/2016 12:16 PM, Jesus Vte. Vila wrote: > >> Hi, I'm using Puppet Agent 1.3.5 on Windows Server 2008 and 2012. >> >> When I create a Scheduled Task, it creates correctly but every time task >> is running, it shows the task screen. If the task is running every 5 >> minutes it's annoying. >> > This doesn't seem right and isn't in line with how we've seen it work. Perhaps it is a setting you are using that is causing this? Can you specify what your manifest looks like? > >> I've observed Puppet Agent, create task and in the properties, in the >> part "Configure for" is selected "Windows Server 2003, Windows XP o Windows >> 2000" >> >> If i change this for "Windows Vista or Windows 2008" the window of the >> running task is hidden :-) but when agent run again, it changes again to >> Windows 2003 >> > We are considering support for v2 scheduled tasks, but right now it needs to be at the level we originally supported. Now that Puppet Agent has removed Windows 2003 support in the latest versions of Puppet we have more options to move forward with v2. We have been discussing this internally, but I don't have anything to share about it yet. Here are the known Scheduled_Task tickets[1]. You can file a ticket requesting this under the PUP project[2] and we can start a public discussion if you feel this is a priority for us to address. [1] https://tickets.puppetlabs.com/issues/?jql=project%20%3D%20PUP%20AND%20resolution%20%3D%20Unresolved%20AND%20labels%20%3D%20scheduled_task [2] https://tickets.puppetlabs.com/browse/PUP > >> What can i do? >> >> Thanks . >> > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/56F32A21.3020102%40Alumni.TU-Berlin.de > . > > For more options, visit https://groups.google.com/d/optout. > -- Rob Reynolds Developer, Puppet Labs PuppetConf 2016 <http://2016.puppetconf.com/>, October 17-21, San Diego, California *Early Birds save $350* <https://www.eventbrite.com/e/puppetconf-2016-october-17-21-tickets-18750712887?discount=EarlyBird> - Register by June 30th -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK6wzaC%2BDWygb9Kz7xfNx3is9SCm9J4jA8gGf65C4vqWJw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Passing Powershell Variables into Puppet manifest
On Tue, Oct 27, 2015 at 10:27 AM, <tom.sw...@itv.com> wrote: > Hi all > > Im having difficulty passing powershell variables into Puppet, while using > the Powershell module. > > What I need to achieve is this in powershell. It is basically a script > that executes a check to see if a windows module is installed, and if not, > copies it from a source directory. > > *This is the powershell script* > > $check = Get-WindowsFeature -name Net-Framework-Core > $source = "\\server\directory\directory2\directory3" > $destination = "C:\source3" > if ($check.Installed -ne "True") { > Copy-Item $source -Destination $destination -Recurse > Install-WindowsFeature Net-Framework-Core > Remove-Item $destination -Recurse > } > > *This is my puppet manifest* > > class profiles::dotnetrun { > > > $check = "Get-WindowsFeature -name Net-Framework-Core" > This is a Puppet variable when it is in the manifest, not a PowerShell variable. > $source = "server\\directory\\directory2\\directory3" > > $destination = "C:\source3" > > > exec { 'dotnet': > > command => 'Copy-Item \$source -Destination \$destination > -Recurse', > > onlyif => '\$check.Installed -ne "True"', > Probably due to some confusion on Puppet variables versus PowerShell variables. You cannot define a PowerShell variable in the manifest as you have tried above. Another issue is that you want these to be used as variables from Puppet, but they are likely being passed as literal strings. You should instead look into removing the variables and passing the entire string or updating these calls to use double-quoted strings so that variable interpolation will occur (the literal string *$source* is passed when you use '$source', the variable value is passed when you use "$source") and using escape characters where appropriate. Another option is to look into calling PowerShell files in either a templates or files directory of your module. Also calling $check.Installed is not likely to work as it is shown in your manifest. If you instead surround it as "\$($check).Installed", you may have more luck. HTH. > provider => powershell, > > > } > > } > > <http://www.itv.com> > > ITV plc (Registration No. 4967001) (ITV) is incorporated in England and > Wales with its registered office at The London Television Centre, Upper > Ground, London SE1 9LT. Please visit www.itv.com for further information. > > This email and any attachments are intended solely for the addressee and > may contain confidential, copyrighted and/or privileged information. If > you have received this message in error, please notify us and delete it. > Recipients should scan the email and any attachments for their own > protection. > > This email does not conclude a binding agreement. The views or opinions > presented in this email do not necessarily represent those of ITV. > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/5672654e-6c18-4fdd-a2c7-d4c62cba1a03%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-users/5672654e-6c18-4fdd-a2c7-d4c62cba1a03%40googlegroups.com?utm_medium=email_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Rob Reynolds Developer, Puppet Labs -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK54oruV8GCTW_-ZtM1aJW%3DT4BeM%2B_f_oF%3Dds2QaQMMzMQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] powershell detect then install nonexistent or replace existing custom service
On Wed, Nov 4, 2015 at 2:11 PM, Aaron <aaron.ma...@gmail.com> wrote: > blech - nevermind. still throws horrible errors when the service has not > been installed yet and puppet runs (such as on a new VM). > > Is there any way to have it see that there is an error during the > uninstall and then run an ELSE and move onto the Install portion without > getting hung up on not being able to uninstall first? this is the step I > can't seem to figure out. > Shift that install command to a file or script that can do error handling and have it ignore specific errors. > > > Aaron > > > On Wednesday, November 4, 2015 at 2:58:46 PM UTC-5, Aaron wrote: >> >> Thanks Rob! >> >> This appears to work well after looking into your suggestions...I tried >> to include an "unless" statement at the end of the Install New FooService >> Service" block for a little extra security, but it didn't seem to like that >> so I removed it - I'm not sure of the reason for that, however. >> The refreshonly is there to make sure this doesn't just randomly >> uninstall and install the service but only does it when new code has been >> dropped into place or a file has been altered against policy and the >> service may be corrupted. >> >> class FooService::install { >> >> >> if $::osfamily == 'windows' { >> File { source_permissions => ignore } >> } >> >> >> file { 'C:\\Services\\Win\\FooServiceConsumerSvc\\': >> ensure => present, >> source => 'puppet:///modules/FooService/FooService', >> recurse => true, >> purge => true, >> force => true, >> } >> >> >> exec { 'Uninstall Old FooService Service': >> command => >> 'C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe >> /Logfile= /InstallStateDir="C:\Services\Logs\Win" /uninstall >> "C:\Services\Win\FooServiceConsumerSvc\FooService.exe"', >> provider=> powershell, >> subscribe => File['C:\\Services\\Win\\FooServiceConsumerSvc\\'], >> onlyif => 'if ((Get-Service -name "FooService") -ne $null)', >> > You could probably convert this to simply onlyif='Get-Service -name "FooService"' - it's going to throw an error if there is no service by the name you are asking for. > >> refreshonly => true, >> notify => Exec['Install New FooService Service'], >> } >> >> >> exec { 'Install New FooService Service': >> command => >> 'C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe >> /username=AD\user /password=password /Logfile= >> /InstallStateDir="C:\Services\Logs\Win" >> "C:\Services\Win\FooServiceConsumerSvc\FooService.exe"', >> provider=> powershell, >> refreshonly => true, >> } >> >> >> } >> >> >> On Tuesday, November 3, 2015 at 10:44:03 AM UTC-5, Rob Reynolds wrote: >>> >>> >>> >>> On Fri, Oct 30, 2015 at 8:50 AM, Aaron <aaron...@gmail.com> wrote: >>> >>>> I have a question and hopefully someone can help me resolve it - >>>> >>>> In windows, I have custom services that I need to manage. I've been >>>> running this code for a while, and it works well for several custom Windows >>>> services, but the problem is I cannot run it on a bare server without >>>> manual intervention (i.e. manually running the installer powershell script >>>> to create the Service before puppet will complete successfully after >>>> that). It will fail because the Detect does not see the service, so the >>>> Uninstall cannot succeed. I am trying to figure out how to use an ELSE off >>>> of the Detect Exec block, but am not sure how to make that work. And I am >>>> unsure if there is anything clever I can do with the NOTIFY in the detect >>>> block. >>>> >>>> Can anyone offer some assistance? >>>> >>>> FYI I do not have installers, I have the bare files that are moved into >>>> place in the first File block, and then the Detect runs if any changes are >>>> made to any files in the service. Hopefully that remains clear in my >>>> attempt to make this generic. >>>> >>>> class FooService::install { >>>> >>>> if $::osfamily == 'windows' { >>>> File { source_permissions => ignore } >>>> } >>>> >>>> f
Re: [Puppet Users] Re: Forge ACL Module 1.1.1 on Windows 7 x64 SP1
On Tue, Nov 10, 2015 at 7:22 AM, jmp242 <jp10...@gmail.com> wrote: > Ok, well, it was on one test computer. On others it's giving the same > error, but I think the parameter issue is actually specific to the existing > file / permissions. I moved the file and re-ran puppet, which as part of > the manifest re-created the file and could set permissions fine. It seems > like there is some issue with a certain permissions set that causes me > issues with ACL module. Specifically, the original file doesn't have any > user permissions set. I'm wondering if that is the issue? > That's an interesting one and probably worth capturing as a ticket. Can you expand on that one just a bit more? Like icacls reports no permissions at all? Or right clicking, selecting Properties, and going to the Security tab is completely empty? Or just that Puppet wouldn't have permissions to the file? > > > On Monday, November 9, 2015 at 3:22:11 PM UTC-5, jmp242 wrote: > >> Ok, sorry everyone for a false alarm. I finally figured this out - >> something I thought wouldn't be relevant at all, hence my failure to >> mention, but what happened is this. I have a module that is applied via the >> Forman ENC. It uses the acl module as a "puppet feature extension" (I don't >> know the official term for these sorts of forge modules). The ACL module is >> never applied to a host group or host via the Foreman "puppet classes". So >> I hadn't imported it into Foreman. This apparently is a problem. I was >> building a new module today, and happened to say "why not import the acl >> module while I'm here?" and did. Bam, ACL module now works. >> >> I apparently still don't totally understand how the ENC -> Puppet works >> wrt modules that aren't directly applied. Now in my notes for the future! >> >> On Wednesday, November 4, 2015 at 1:32:07 PM UTC-5, Rob Reynolds wrote: >> >> >> >> On Mon, Oct 19, 2015 at 10:10 AM, jmp242 <jp1...@gmail.com> wrote: >> >> Hmm, so on one test computer, the upgrade to puppet 3.8.3 fixed the >> issue. On the second test computer, it didn't - everything remains the >> same, but getting the same repeated ACE... >> >> >> What does 'cacls *folderlocation*' return? >> >> >> >> >> On Thursday, October 15, 2015 at 12:27:34 AM UTC-4, Rob Reynolds wrote: >> >> >> >> On Thu, Oct 1, 2015 at 8:09 AM, jmp242 <jp1...@gmail.com> wrote: >> >> Puppet 3.8.1 on Windows currently. puppet module list doesn't return >> anything for me. I'm downloading the zip file and unzipping the module into >> a folder. I then copy the folder into my local dev modules directory using >> Geppeto, and doing the same for any dependencies. I then check into our SVN >> the modules, and tag them with the version they are from forge if public, >> or an internal version for our custom modules. I then check out the tag or >> svn switch to the latest tag on the puppet server dev module directory. >> >> >> Ah okay. I'm wondering what might cause issues surrounding 3.8.1 and ACL >> provider. An ACE with the same structure 142 times though, I'm wondering if >> there is a memory issue there. >> >> >> >> On Wednesday, September 30, 2015 at 3:38:49 PM UTC-4, Rob Reynolds wrote: >> >> Thanks. I'm surprised that a 'puppet agent --trace --debug --verbose' >> didn't turn up any more information about the error. >> >> Can you remind me again what version of Puppet you have installed? >> >> And the modules, `puppet module list`. How are you installing these >> modules by the way? >> >> On Tue, Sep 29, 2015 at 2:43 PM, jmp242 <jp1...@gmail.com> wrote: >> >> Sure, that's perhaps misleading a little - our internal custom puppet >> module is called yum as it was created for EL6 first. When we got a package >> manager on Windows, i.e. chocolatey, it seemed to make sense to put it in >> the Windows section of the yum module. By that I mean we have a switch on >> kernel in our modules. Here's the complete module: >> class yum ($choco_repo_url, $choco_repo_name) { >> schedule { 'monday_updates': >> range => '22:00 - 12:00', >> weekday => 'Monday', >> } >> >> schedule { 'tuesday_updates': >> range => '10:00 - 12:00', >> weekday => 'Tuesday', >> } >> >> schedule { 'daily_updates': >> period => daily, >> range => '22:00-3:00', >> } >> >> define repo { >> file { "${title}": >> path => "/etc/yum.
Re: [Puppet Users] Re: Forge ACL Module 1.1.1 on Windows 7 x64 SP1
On Mon, Oct 19, 2015 at 10:10 AM, jmp242 <jp10...@gmail.com> wrote: > Hmm, so on one test computer, the upgrade to puppet 3.8.3 fixed the issue. > On the second test computer, it didn't - everything remains the same, but > getting the same repeated ACE... > What does 'cacls *folderlocation*' return? > > > On Thursday, October 15, 2015 at 12:27:34 AM UTC-4, Rob Reynolds wrote: >> >> >> >> On Thu, Oct 1, 2015 at 8:09 AM, jmp242 <jp1...@gmail.com> wrote: >> >> Puppet 3.8.1 on Windows currently. puppet module list doesn't return >> anything for me. I'm downloading the zip file and unzipping the module into >> a folder. I then copy the folder into my local dev modules directory using >> Geppeto, and doing the same for any dependencies. I then check into our SVN >> the modules, and tag them with the version they are from forge if public, >> or an internal version for our custom modules. I then check out the tag or >> svn switch to the latest tag on the puppet server dev module directory. >> >> >> Ah okay. I'm wondering what might cause issues surrounding 3.8.1 and ACL >> provider. An ACE with the same structure 142 times though, I'm wondering if >> there is a memory issue there. >> >> >> >> On Wednesday, September 30, 2015 at 3:38:49 PM UTC-4, Rob Reynolds wrote: >> >> Thanks. I'm surprised that a 'puppet agent --trace --debug --verbose' >> didn't turn up any more information about the error. >> >> Can you remind me again what version of Puppet you have installed? >> >> And the modules, `puppet module list`. How are you installing these >> modules by the way? >> >> On Tue, Sep 29, 2015 at 2:43 PM, jmp242 <jp1...@gmail.com> wrote: >> >> Sure, that's perhaps misleading a little - our internal custom puppet >> module is called yum as it was created for EL6 first. When we got a package >> manager on Windows, i.e. chocolatey, it seemed to make sense to put it in >> the Windows section of the yum module. By that I mean we have a switch on >> kernel in our modules. Here's the complete module: >> class yum ($choco_repo_url, $choco_repo_name) { >> schedule { 'monday_updates': >> range => '22:00 - 12:00', >> weekday => 'Monday', >> } >> >> schedule { 'tuesday_updates': >> range => '10:00 - 12:00', >> weekday => 'Tuesday', >> } >> >> schedule { 'daily_updates': >> period => daily, >> range => '22:00-3:00', >> } >> >> define repo { >> file { "${title}": >> path => "/etc/yum.repos.d/${title}", >> source => "puppet:///modules/${caller_module_name}/${title}", >> ensure => 'present', >> owner => root, >> group => root, >> mode => "644", >> notify => Exec["yum-clean-all"], >> } >> >> } >> >> case $kernel { >> 'linux' : { >> package { 'yum': ensure => present, } >> >> package { 'yum-autoupdate': ensure => present, } >> >> repo { "sl-classe.repo": } >> >> file { "sl-classe-testing": >> content => template('yum/sl-classe-testing.repo.erb'), >> path=> "/etc/yum.repos.d/sl-classe-testing.repo", >> owner => root, >> group => root, >> mode=> 644, >> ensure => present, >> notify => Exec["yum-clean-all"], >> } >> >> file { "yum.conf": >> source => "puppet:///modules/yum/yum.conf", >> path => "/etc/yum.conf", >> owner => root, >> group => root, >> mode => 644, >> ensure => present, >> } >> >> file { "sl-lepp": >> path => "/etc/yum.repos.d/sl-lepp.repo", >> ensure => absent, >> } >> >> file { "sl-lepp-testing": >> path => "/etc/yum.repos.d/sl-lepp-testing.repo", >> ensure => absent, >> } >> >> exec { "yum-clean-all": >> command => "yum clean all", >> refreshonly => true, >> } >> >> case $operatingsystemmajrelease { >> '6' : { >> $sl6repos = ["devtoolset.repo", "sl-oth
Re: [Puppet Users] powershell detect then install nonexistent or replace existing custom service
On Fri, Oct 30, 2015 at 8:50 AM, Aaron <aaron.ma...@gmail.com> wrote: > I have a question and hopefully someone can help me resolve it - > > In windows, I have custom services that I need to manage. I've been > running this code for a while, and it works well for several custom Windows > services, but the problem is I cannot run it on a bare server without > manual intervention (i.e. manually running the installer powershell script > to create the Service before puppet will complete successfully after > that). It will fail because the Detect does not see the service, so the > Uninstall cannot succeed. I am trying to figure out how to use an ELSE off > of the Detect Exec block, but am not sure how to make that work. And I am > unsure if there is anything clever I can do with the NOTIFY in the detect > block. > > Can anyone offer some assistance? > > FYI I do not have installers, I have the bare files that are moved into > place in the first File block, and then the Detect runs if any changes are > made to any files in the service. Hopefully that remains clear in my > attempt to make this generic. > > class FooService::install { > > if $::osfamily == 'windows' { > File { source_permissions => ignore } > } > > file { 'C:\\Services\\Win\\FooServiceConsumerSvc\\': > ensure => present, > source => 'puppet:///modules/FooService/FooService', > recurse => true, > purge => true, > force => true, > } > > exec { 'Detect FooService Service': > command => 'if ((Get-Service -name "FooService") -ne $null)', > You could add more to the command to run here. > provider=> powershell, > subscribe => File['C:\\Services\\Win\\FooServiceConsumerSvc\\'], > refreshonly => true, > notify => Exec['Uninstall Old FooService Service'], > returns => 0, > } > > exec { 'Uninstall Old FooService Service': > command => > 'C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe /Logfile= > /InstallStateDir="C:\Services\Logs\Win" /uninstall > "C:\Services\Win\FooServiceConsumerSvc\FooService.exe"', > provider=> powershell, > refreshonly => true, > notify => Exec['Install New FooService Service'], > } > > exec { 'Install New FooService Service': > command => > 'C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe > /username=AD\user /password=password /Logfile= > /InstallStateDir="C:\Services\Logs\Win" > "C:\Services\Win\FooServiceConsumerSvc\FooService.exe"', > provider=> powershell, > refreshonly => true, > } > I would move this from a refresh only and introduce onlyif or unless where you check to see if the service is installed. And if it is not, then install it. For an example of unless see https://github.com/chocolatey/puppet-chocolatey/blob/3cce9e59d01f774ac48c40ec452b04eee9a81ebb/manifests/config.pp#L20-L25 > > } > > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/7aba5a95-c27b-4bf3-a568-9f5e785ab9ce%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-users/7aba5a95-c27b-4bf3-a568-9f5e785ab9ce%40googlegroups.com?utm_medium=email_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Rob Reynolds Developer, Puppet Labs -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK4WEry764QsNi63B5TZwZHQH4pLzOH0vhUHSZ3NpUkVrw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Managing Chocolatey sources with File resource and Template on Windows 7 x64 SP1
On Tue, Oct 27, 2015 at 2:14 AM, Fredrik Nilsson <soccyp...@gmail.com> wrote: > Should have replied earlier, to much to do I guess. > > Anyways what seems to have solved the issue in our case was an update of > chocolatey to the latest stable release in the form of 0.9.9.11, updating > the template of the configuration handled by puppet and also updating the > chocolatey puppet module, I'm unaware of the version in that case, but that > quieted it all down and now we're back to business as usual... > Great to hear! > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/9e2501d3-04d6-4943-b5ba-9e6f3c2b2391%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-users/9e2501d3-04d6-4943-b5ba-9e6f3c2b2391%40googlegroups.com?utm_medium=email_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Rob Reynolds Developer, Puppet Labs -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK5MyD76azLvRmGGxnFE3Gg4v2Zx2H%3D2DdupHZd2p8v17g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Re: Forge ACL Module 1.1.1 on Windows 7 x64 SP1
On Thu, Oct 1, 2015 at 8:09 AM, jmp242 <jp10...@gmail.com> wrote: > Puppet 3.8.1 on Windows currently. puppet module list doesn't return > anything for me. I'm downloading the zip file and unzipping the module into > a folder. I then copy the folder into my local dev modules directory using > Geppeto, and doing the same for any dependencies. I then check into our SVN > the modules, and tag them with the version they are from forge if public, > or an internal version for our custom modules. I then check out the tag or > svn switch to the latest tag on the puppet server dev module directory. > Ah okay. I'm wondering what might cause issues surrounding 3.8.1 and ACL provider. An ACE with the same structure 142 times though, I'm wondering if there is a memory issue there. > > On Wednesday, September 30, 2015 at 3:38:49 PM UTC-4, Rob Reynolds wrote: >> >> Thanks. I'm surprised that a 'puppet agent --trace --debug --verbose' >> didn't turn up any more information about the error. >> >> Can you remind me again what version of Puppet you have installed? >> >> And the modules, `puppet module list`. How are you installing these >> modules by the way? >> >> On Tue, Sep 29, 2015 at 2:43 PM, jmp242 <jp1...@gmail.com> wrote: >> >> Sure, that's perhaps misleading a little - our internal custom puppet >> module is called yum as it was created for EL6 first. When we got a package >> manager on Windows, i.e. chocolatey, it seemed to make sense to put it in >> the Windows section of the yum module. By that I mean we have a switch on >> kernel in our modules. Here's the complete module: >> class yum ($choco_repo_url, $choco_repo_name) { >> schedule { 'monday_updates': >> range => '22:00 - 12:00', >> weekday => 'Monday', >> } >> >> schedule { 'tuesday_updates': >> range => '10:00 - 12:00', >> weekday => 'Tuesday', >> } >> >> schedule { 'daily_updates': >> period => daily, >> range => '22:00-3:00', >> } >> >> define repo { >> file { "${title}": >> path => "/etc/yum.repos.d/${title}", >> source => "puppet:///modules/${caller_module_name}/${title}", >> ensure => 'present', >> owner => root, >> group => root, >> mode => "644", >> notify => Exec["yum-clean-all"], >> } >> >> } >> >> case $kernel { >> 'linux' : { >> package { 'yum': ensure => present, } >> >> package { 'yum-autoupdate': ensure => present, } >> >> repo { "sl-classe.repo": } >> >> file { "sl-classe-testing": >> content => template('yum/sl-classe-testing.repo.erb'), >> path=> "/etc/yum.repos.d/sl-classe-testing.repo", >> owner => root, >> group => root, >> mode=> 644, >> ensure => present, >> notify => Exec["yum-clean-all"], >> } >> >> file { "yum.conf": >> source => "puppet:///modules/yum/yum.conf", >> path => "/etc/yum.conf", >> owner => root, >> group => root, >> mode => 644, >> ensure => present, >> } >> >> file { "sl-lepp": >> path => "/etc/yum.repos.d/sl-lepp.repo", >> ensure => absent, >> } >> >> file { "sl-lepp-testing": >> path => "/etc/yum.repos.d/sl-lepp-testing.repo", >> ensure => absent, >> } >> >> exec { "yum-clean-all": >> command => "yum clean all", >> refreshonly => true, >> } >> >> case $operatingsystemmajrelease { >> '6' : { >> $sl6repos = ["devtoolset.repo", "sl-other.repo", "sl.repo"] >> >> repo { $sl6repos: } >> >> file { "softwarecollections": >> source => >> "puppet:///modules/yum/sl6-softwarecollections.repo", >> path => "/etc/yum.repos.d/softwarecollections.repo", >> owner => root, >> group => root, >> mode => 644, >> ensure => present, >> notify =>
Re: [Puppet Users] Re: Can Windows environment variables be referenced by 'exec'
On Mon, Oct 12, 2015 at 5:54 AM, jcbollinger <john.bollin...@stjude.org> wrote: > > On Friday, October 9, 2015 at 2:53:47 PM UTC-5, Leroy Tennison wrote: >> >> Puppet v3.4.3 >> > At 3.4.3 your options are a bit more limited. For instance you are on 32 bit Puppet/Ruby b/c we didn't offer x64 Puppet/Ruby until 3.7.0. Or the $::system32 fact[1]. We'll get into why this is important below. [1] https://docs.puppetlabs.com/puppet/latest/reference/lang_windows_file_paths.html#file-system-redirection-when-running-32-bit-puppet-on-64-bit-windows > >> What I was specifically hoping to do was: >> >> exec { 'test' : >> >> command => "%comspec% /c (a Windows command-line program with >> parameters)", >> >> } >> >> >> to avoid having to determine where Windows was installed. Although >> 'puppet parser vaildate init.pp' doesn't return an error the client agent >> reports "...not qualified and no path was specified... " (I realize the >> parser doesn't catch everything) >> >> I tried variants %%comspec%% and \%comspec\% (puppet parser complained >> about this) but nothing works. If this is possible please provide an >> example of the correct syntax, thanks. >> >> Now for the more general question, are environment variables defined on >> Windows able to be used at all on the puppet server when specifying an >> agent action? >> > If you offer those environment variables up as facts, they will be available. Environment variables are usually available to whatever you are running, but they may or may not be available for Puppet. So having a custom fact that finds ComSpec and returns it as a custom fact will allow you to exec { 'test' : command => "${comspec} /c (a Windows command-line program with parameters)", } But you are likely to run into file system redirection if you don't provide some compensation for it. This may adjust your approach. Read below. > > Yes and no. The docs for Exec's 'windows' provider > <http://docs.puppetlabs.com/references/4.2.latest/type.html#exec-provider-windows> > say this: > > Execute external binaries on Windows systems. As with the posix provider, >> this provider directly calls the command with the arguments given, without >> passing it through a shell or performing any interpolation. To use shell >> built-ins — that is, to emulate the shell provider on Windows — a >> command must explicitly invoke the shell: >> > exec {'echo foo': > command => 'cmd.exe /c echo "foo"', > } > > The explanation of how to use shell built-ins should apply also to using > the shell's syntax for referencing environment variables. Note also that > you can use powershell for such purposes instead of cmd.exe, and many do > so. > Let's say for a second that your Windows install is in C:\Windows. Strictly using cmd.exe or %comspec% is going to end up using C:\Windows\SysWOW64\cmd.exe even though it appears it is using C:\Windows\System32\cmd.exe. This is due to Puppet 3.4.3 being subject to Windows' File System Redirection[2]. I wrote a post on this awhile ago[3] that would be worth a read. The PowerShell provider already compensates for this to use the native paths. We've written up in the docs how you can compensate for redirection even if you don't have the $system32 fact[4]. So while you can provide comspec as a fact, you will want to do the compensation in the custom fact to ensure that it uses a 64 bit paths and sysnative on 64 bit systems. [2] https://msdn.microsoft.com/en-us/library/aa384187.aspx [3] https://puppetlabs.com/blog/how-avoid-common-windows-gotchas-puppet [4] https://docs.puppetlabs.com/puppet/latest/reference/lang_windows_file_paths.html#compensating-for-redirection > > > John > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/faa328e8-7382-4f65-8a87-d3361b076890%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-users/faa328e8-7382-4f65-8a87-d3361b076890%40googlegroups.com?utm_medium=email_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 <http://info.puppetlabs.com/PuppetConf2015LiveStream.html>** is this week! Join us via the live stream <http://info.puppetlabs.com/PuppetConf2015LiveStream.html>! * -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK66zAV3n8d_kzro51s6rkGewNi_bH92J42Eq-3Ma%2BmX_Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Managing Chocolatey sources with File resource and Template on Windows 7 x64 SP1
936 [DEBUG] - _ Chocolatey:ChocolateyFeatureCommand - > Normal Run Mode _ > 2015-10-08 08:48:32,951 [INFO ] - checksumFiles - [Enabled] | Checksum > files when pulled in from internet (based on package). > 2015-10-08 08:48:32,951 [INFO ] - autoUninstaller - [Enabled] | Uninstall > from programs and features without requiring an explicit uninstall script. > 2015-10-08 08:48:32,951 [INFO ] - allowGlobalConfirmation - [Disabled] | > Prompt for confirmation in scripts or bypass. > 2015-10-08 08:48:32,951 [INFO ] - failOnAutoUninstaller - [Disabled] | > Fail if automatic uninstaller fails. > 2015-10-08 08:48:32,951 [DEBUG] - Exiting with 0 > 2015-10-08 08:48:33,842 [DEBUG] - Configured > chocolatey.infrastructure.logging.log4net.config.xml from assembly choco, > Version=0.9.10.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb > 2015-10-08 08:48:33,842 [DEBUG] - Configured > chocolatey.infrastructure.logging.log4net.config.xml from assembly choco, > Version=0.9.10.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb > 2015-10-08 08:48:33,889 [DEBUG] - XmlConfiguration is now operational > 2015-10-08 08:48:34,186 [DEBUG] - Attempting to delete file > "C:\ProgramData\chocolatey\config\chocolatey.config.update". > 2015-10-08 08:48:34,248 [DEBUG] - Chocolatey is running on Windows v > 6.3.9600.0 > 2015-10-08 08:48:34,248 [DEBUG] - Attempting to delete file > "C:/ProgramData/chocolatey/choco.exe.old". > 2015-10-08 08:48:34,248 [DEBUG] - Attempting to delete file > "C:\ProgramData\chocolatey\choco.exe.old". > 2015-10-08 08:48:34,264 [DEBUG] - Command line: > "C:\ProgramData\chocolatey\choco.exe" feature -r enable -n autoUninstaller > 2015-10-08 08:48:34,264 [DEBUG] - Received arguments: feature -r enable -n > autoUninstaller > 2015-10-08 08:48:34,342 [DEBUG] - The source '' evaluated to a 'normal' > source type > 2015-10-08 08:48:34,357 [DEBUG] - > NOTE: Hiding sensitive configuration data! Please double and triple > check to be sure no sensitive data is shown, especially if copying > output to a gist for review. > 2015-10-08 08:48:34,373 [DEBUG] - Configuration: CommandName='feature'| > CacheLocation='C:\Users\ADM_FR~1\AppData\Local\Temp'| > ContainsLegacyPackageInstalls='True'| > CommandExecutionTimeoutSeconds='2700'|SourceType='normal'| > Debug='False'| > Verbose='False'|Force='False'|Noop='False'|HelpRequested='False'| > RegularOutput='False'|QuietOutput='False'|PromptForConfirmation='True'| > AcceptLicense='False'|AllowUnofficialBuild='False'|Input='enable'| > AllVersions='False'|SkipPackageInstallProvider='False'| > Prerelease='False'|ForceX86='False'|OverrideArguments='False'| > NotSilent='False'|IgnoreDependencies='False'| > AllowMultipleVersions='False'|AllowDowngrade='False'| > ForceDependencies='False'|Information.PlatformType='Windows'| > Information.PlatformVersion='6.3.9600.0'| > Information.PlatformName='Windows Server 2012 R2'| > Information.ChocolateyVersion='0.9.10.0'| > Information.ChocolateyProductVersion='0.9.10-beta1'| > Information.FullName='choco, Version=0.9.10.0, Culture=neutral, > PublicKeyToken=79d02ea9cad655eb'| > Information.Is64Bit='True'|Information.IsInteractive='True'| > Information.IsUserAdministrator='True'| > Information.IsProcessElevated='True'|Features.AutoUninstaller='True'| > Features.CheckSumFiles='True'|Features.FailOnAutoUninstaller='False'| > ListCommand.LocalOnly='False'| > ListCommand.IncludeRegistryPrograms='False'|ListCommand.PageSize='25'| > UpgradeCommand.FailOnUnfound='False'| > UpgradeCommand.FailOnNotInstalled='False'| > UpgradeCommand.NotifyOnlyAvailableUpgrades='False'| > NewCommand.AutomaticPackage='False'|SourceCommand.Command='unknown'| > SourceCommand.Priority='0'|FeatureCommand.Name='autoUninstaller'| > FeatureCommand.Command='enable'|ConfigCommand.Command='unknown'| > PushCommand.TimeoutInSeconds='0'|PinCommand.Command='unknown'| > 2015-10-08 08:48:34,373 [DEBUG] - _ Chocolatey:ChocolateyFeatureCommand - > Normal Run Mode _ > 2015-10-08 08:48:34,404 [INFO ] - autoUninstaller was enabled by default. > Explicitly setting value. > 2015-10-08 08:48:34,420 [DEBUG] - Attempting to copy > "C:\ProgramData\chocolatey\config\chocolatey.config.update" > to "C:\ProgramData\chocolatey\config\chocolatey.config". > 2015-10-08 08:48:34,420 [DEBUG] - Attempting to delete file > "C:\ProgramData\chocolatey\config\chocolatey.config.update". > 2015-10-08 08:48:34,420 [WARN ] - Enabled autoUninstaller > 2015-10-08 08:48:34,420 [DEBUG] - Exiting with 0 > > > > Den måndag 5 oktober 2015 kl. 04:31:09 UTC+2 skrev Rob Reynolds: > >> You folks may want to upgrade to 0.9.9.10 and see if this behavior is >> still observed. Chocolatey no longer touches the
Re: [Puppet Users] Managing Chocolatey sources with File resource and Template on Windows 7 x64 SP1
You folks may want to upgrade to 0.9.9.10 and see if this behavior is still observed. Chocolatey no longer touches the config file unless changes are needed[1]. [1] https://github.com/chocolatey/choco/issues/364 On Fri, Oct 2, 2015 at 1:55 PM, jmp242 <jp10...@gmail.com> wrote: > Sadly, I haven't had time to figure out how to submit a bug on this. If > you can, it would be great. > > > On Friday, October 2, 2015 at 10:31:09 AM UTC-4, Fredrik Nilsson wrote: >> >> Hi, >> >> I've actually noticed the exact same behaviour, always replacing >> chocolatey.config and always with the same to hashes. We're running client >> version 3.8.3 and both x86 and x64 versions are experiencing the same >> error. Jmp242 did you file a bug report on this? >> I compared the file before and after in Notepad++ that said it was >> identical so I made a nother comparison using HxD that also reported the >> files identical... >> >> //Fredrik >> >> Den torsdag 17 september 2015 kl. 15:56:20 UTC+2 skrev Rob Reynolds: >> >>> >>> >>> On Tue, Sep 15, 2015 at 1:24 PM, jmp242 <jp1...@gmail.com> wrote: >>> >>>> The template file was created in Geppeto, and has crlf line endings. >>>> The chocolatey.config also has crlf line endings. This is tested using the >>>> file command on Scientific Linux 7.1. For testing the windows file, I >>>> copied it over SMB from the windows computer. >>>> >>> >>> This sounds like a possible Puppet bug. If you can get a simple repro up >>> as a github repo (remove Chocolatey from the equation though as it changes >>> the file), we can test it out. I created something similar once for the >>> similar issue I mentioned (PUP-927[1]) - puppet-simple_templates[2]. Once >>> you have a repro without chocolatey being part of the equation, create a >>> ticket in JIRA[3] to followup. If it turns out it has something to do with >>> Chocolatey instead, there is already have an issue not to mess with the >>> config file if there are no changes[4], which should be fixed in 0.9.9.9. >>> >>> [1] https://tickets.puppetlabs.com/browse/PUP-927 >>> [2] https://github.com/ferventcoder/puppet-simple_templates >>> [3] https://tickets.puppetlabs.com/browse/PUP >>> [4] https://github.com/chocolatey/choco/issues/364 >>> >>>> >>>> >>>> >>>> >>>> On Wednesday, September 9, 2015 at 2:26:38 PM UTC-4, Rob Reynolds wrote: >>>>> >>>>> Can you take a look at your line endings in the template file? And >>>>> then determine what the line endings are in the actual chocolatey.config >>>>> after choco.exe runs? >>>>> >>>>> On Fri, Sep 4, 2015 at 8:25 AM, jmp242 <jp1...@gmail.com> wrote: >>>>> >>>>>> 64 bit. >>>>>> >>>>>> -- >>>>>> You received this message because you are subscribed to the Google >>>>>> Groups "Puppet Users" group. >>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>> send an email to puppet-users...@googlegroups.com. >>>>>> To view this discussion on the web visit >>>>>> https://groups.google.com/d/msgid/puppet-users/05bd8bec-247e-44a0-870b-2936a038c41c%40googlegroups.com >>>>>> <https://groups.google.com/d/msgid/puppet-users/05bd8bec-247e-44a0-870b-2936a038c41c%40googlegroups.com?utm_medium=email_source=footer> >>>>>> . >>>>>> >>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Rob Reynolds >>>>> Developer, Puppet Labs >>>>> >>>>> *PuppetConf 2015 <http://2015.puppetconf.com/> is coming to Portland, >>>>> Oregon! Join us October 5-9.* >>>>> *Register now to take advantage of the Final Countdown discount >>>>> <https://www.eventbrite.com/e/puppetconf-2015-october-5-9-register-now-its-the-final-countdown-tickets-13115894995?discount=FinalCountdown> >>>>> * >>>>> *—**save $149!* >>>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Puppet Users" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to pup
Re: [Puppet Users] Re: Forge ACL Module 1.1.1 on Windows 7 x64 SP1
os.d/sl-softwarecollections.repo", > owner => root, > group => root, > mode => 644, > ensure => present, > notify => Exec["yum-clean-all"], > } > > exec { "yum-autoupdate": > command => "mv /etc/cron.daily/0yum-daily.cron > /etc/cron.weekly/0yum-daily.cron", > onlyif => "[ -f /etc/cron.daily/0yum-daily.cron ]", > } > > file { "/etc/cron.daily/0yum-daily.cron": ensure => absent, } > > file { "/etc/cron.weekly/0yum-daily.cron": ensure => present, } > Exec['yum-autoupdate'] -> File['/etc/cron.daily/0yum-daily.cron' > ] -> File['/etc/cron.weekly/0yum-daily.cron'] > > } > } > } > 'windows' : { > exec { 'chocolatelyinstall': > command => '$((iex ((new-object net.webclient).DownloadString(" > https://chocolatey.org/install.ps1;)))>$null 2>&1)', > unless => 'if (Test-Path C:\ProgramData\chocolatey){ exit 0 } > else { exit 1}', > provider => powershell, > } > > file { 'chocolatey.config': > path=> "C:/ProgramData/chocolatey/config/chocolatey.config", > content => template('yum/chocolatey.config.erb'), > ensure => present, > } > > acl { 'C:/ProgramData/chocolatey/config/chocolatey.config': > permissions => [ > { > identity => 'SYSTEM', > rights => [ > 'full'] > } > , > { > identity => 'Administrators', > rights => [ > 'full'] > } > , > { > identity => 'Users', > rights => [ > 'read', > 'execute'] > } > ], > require => File['chocolatey.config'], > } > > } > } > } > > > > > On Monday, September 28, 2015 at 3:19:50 PM UTC-4, Rob Reynolds wrote: >> >> Can you address the yum bit? >> >> On Mon, Sep 28, 2015 at 12:34 PM, jmp242 <jp1...@gmail.com> wrote: >> >>> And I removed the "target" and put it in the ACL name as you showed, and >>> get the same error. >>> >>> >>> On Friday, September 25, 2015 at 2:31:43 PM UTC-4, jmp242 wrote: >>>> >>>> I tried with the simplified version: >>>> Enter code here... acl { 'chocolatey.config': >>>> target => >>>> 'C:/ProgramData/chocolatey/config/chocolatey.config', >>>> permissions => [ >>>> { >>>> identity => 'SYSTEM', >>>> rights => [ >>>> 'full'] >>>> } >>>> , >>>> { >>>> identity => 'Administrators', >>>> rights => [ >>>> 'full'] >>>> } >>>> , >>>> { >>>> identity => 'Users', >>>> rights => [ >>>> 'read', >>>> 'execute'] >>>> } >>>> ], >>>> require => File['chocolatey.config'], >>>> } >>>> >>>> I got the same error. Unless the problem is using >>>> target=> >>>> >>>> I'm at a loss >>>> >>>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Puppet Users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to puppet-users...@googlegroups.com. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/puppet-users/155fa6b9-2819-4b25-a311-a65a7094e895%40googlegroups.com >>> <https://groups.google.com/d/msgid/puppet-users/155fa6b9-2819-4b25-a311-a65a7094e895%40googlegroups.com?utm_medium=email_source=footer> >>> . >>> >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> Rob Reynolds >> Developer, Puppet Labs >> >> *PuppetConf 2015 <http://2015.puppetconf.com/>** is right around the >> corner! Join us October 5-9 in Portland, OR. **Register now >> <https://puppetconf2015.eventbrite.com/>**.* >> > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/84a989dc-bf77-43a9-82d1-800ae3b5b73b%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-users/84a989dc-bf77-43a9-82d1-800ae3b5b73b%40googlegroups.com?utm_medium=email_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 <http://2015.puppetconf.com/>** is right around the corner! Join us October 5-9 in Portland, OR. **Register now <https://puppetconf2015.eventbrite.com/>**.* -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK6auSCE2_XYuuSfiXG40uwmqC3FPtoGNJ%3DDqMbq94fPNA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Re: Forge ACL Module 1.1.1 on Windows 7 x64 SP1
Can you address the yum bit? On Mon, Sep 28, 2015 at 12:34 PM, jmp242 <jp10...@gmail.com> wrote: > And I removed the "target" and put it in the ACL name as you showed, and > get the same error. > > > On Friday, September 25, 2015 at 2:31:43 PM UTC-4, jmp242 wrote: >> >> I tried with the simplified version: >> Enter code here... acl { 'chocolatey.config': >> target => >> 'C:/ProgramData/chocolatey/config/chocolatey.config', >> permissions => [ >> { >> identity => 'SYSTEM', >> rights => [ >> 'full'] >> } >> , >> { >> identity => 'Administrators', >> rights => [ >> 'full'] >> } >> , >> { >> identity => 'Users', >> rights => [ >> 'read', >> 'execute'] >> } >> ], >> require => File['chocolatey.config'], >> } >> >> I got the same error. Unless the problem is using >> target=> >> >> I'm at a loss >> >> -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/155fa6b9-2819-4b25-a311-a65a7094e895%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-users/155fa6b9-2819-4b25-a311-a65a7094e895%40googlegroups.com?utm_medium=email_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 <http://2015.puppetconf.com/>** is right around the corner! Join us October 5-9 in Portland, OR. **Register now <https://puppetconf2015.eventbrite.com/>**.* -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK5EKaX0NxXUhy0z3%3D%2BYptATkPtPUf7ESHeOKKgYQ%3DdjrQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Re: Forge ACL Module 1.1.1 on Windows 7 x64 SP1
So let's remove target and give it a shot. acl { 'c:/ProgramData/chocolatey/config/chocolatey.config': On Fri, Sep 25, 2015 at 1:31 PM, jmp242 <jp10...@gmail.com> wrote: > I tried with the simplified version: > Enter code here... acl { 'chocolatey.config': > target => > 'C:/ProgramData/chocolatey/config/chocolatey.config', > permissions => [ > { > identity => 'SYSTEM', > rights => [ > 'full'] > } > , > { > identity => 'Administrators', > rights => [ > 'full'] > } > , > { > identity => 'Users', > rights => [ > 'read', > 'execute'] > } > ], > require => File['chocolatey.config'], > } > > I got the same error. Unless the problem is using > target=> > > I'm at a loss > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/d944ede0-c388-4669-b433-866dc495a667%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-users/d944ede0-c388-4669-b433-866dc495a667%40googlegroups.com?utm_medium=email_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 <http://2015.puppetconf.com/>** is right around the corner! Join us October 5-9 in Portland, OR. **Register now <https://puppetconf2015.eventbrite.com/>**.* -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK7CQgBm6xDQHPE54VgcE3tmoeiVK-HgabhSB9P_2r6H8g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Re: Forge ACL Module 1.1.1 on Windows 7 x64 SP1
Actually I just went back and looked [1;31mError: /Stage[main]/Yum/Acl[chocolatey.config]: Could not evaluate: The parameter is incorrect. -ReportEvent Yum? On Fri, Sep 25, 2015 at 3:38 PM, Rob Reynolds <r...@puppetlabs.com> wrote: > So let's remove target and give it a shot. > > acl { 'c:/ProgramData/chocolatey/config/chocolatey.config': > > On Fri, Sep 25, 2015 at 1:31 PM, jmp242 <jp10...@gmail.com> wrote: > >> I tried with the simplified version: >> Enter code here... acl { 'chocolatey.config': >> target => >> 'C:/ProgramData/chocolatey/config/chocolatey.config', >> permissions => [ >> { >> identity => 'SYSTEM', >> rights => [ >> 'full'] >> } >> , >> { >> identity => 'Administrators', >> rights => [ >> 'full'] >> } >> , >> { >> identity => 'Users', >> rights => [ >> 'read', >> 'execute'] >> } >> ], >> require => File['chocolatey.config'], >> } >> >> I got the same error. Unless the problem is using >> target=> >> >> I'm at a loss >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Puppet Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to puppet-users+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/puppet-users/d944ede0-c388-4669-b433-866dc495a667%40googlegroups.com >> <https://groups.google.com/d/msgid/puppet-users/d944ede0-c388-4669-b433-866dc495a667%40googlegroups.com?utm_medium=email_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Rob Reynolds > Developer, Puppet Labs > > *PuppetConf 2015 <http://2015.puppetconf.com/>** is right around the > corner! Join us October 5-9 in Portland, OR. **Register now > <https://puppetconf2015.eventbrite.com/>**.* > -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 <http://2015.puppetconf.com/>** is right around the corner! Join us October 5-9 in Portland, OR. **Register now <https://puppetconf2015.eventbrite.com/>**.* -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK7NPzHRTy3J%2BuZiqrhXjEN%2BMG42Nj5C%2Bfy9uZevqFFBqw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Forge ACL Module 1.1.1 on Windows 7 x64 SP1
On Thu, Sep 24, 2015 at 7:25 AM, jmp242 <jp10...@gmail.com> wrote: > So per my previous post, I'm now trying to replace the file POSIX > permissions with ACLs. I'm apparently missing something though. I want to > replicate what I had before in the new supported method, i.e.: > > owner => 'SYSTEM', > group => 'Administrators', > mode=> '0775', > > > So I tried doing: > acl { 'chocolatey.config': > target => > 'C:/ProgramData/chocolatey/config/chocolatey.config', > purge => false, > permissions => [ > { > identity=> 'SYSTEM', > rights => [ > 'full'], > perm_type => 'allow', > child_types => 'all', > affects => 'all' > } > , > { > identity=> 'Administrators', > rights => [ > 'full'], > perm_type => 'allow', > child_types => 'all', > affects => 'all' > } > , > { > identity=> 'Users', > rights => [ > 'read', > 'execute'], > perm_type => 'allow', > child_types => 'all', > affects => 'all' > } > ], > owner => 'SYSTEM', # Creator_Owner specific, doesn't manage > unless specified > group => 'Administrators', # Creator_Group specific, > doesn't manage unless specified > inherit_parent_permissions => true, > require => File['chocolatey.config'], > } > > > As I understand the documentation, this seems to map, mind you - being far > more verbose and complicated - to the original permissions. > Sure, it's a LOT more verbose if you add all of the defaults in. Leaving out the defaults and considering that acl already does autorequires on a file with the same path (we'll leave the requires in), this looks a lot better: acl { 'c:/ProgramData/chocolatey/config/chocolatey.config': permissions => [ { identity => 'SYSTEM', rights => ['full']}, { identity => 'Administrators', rights => ['full']}, { identity => 'Users', rights => ['read', 'execute']}, require => File['chocolatey.config'], } > However, I get errors: > Could not evaluate: The parameter is incorrect. - ReportEvent > > This doesn't really help me figure out what I did wrong here... > Not really sure what caused this. Might be good to see this with a `--debug --trace --verbose` run to see what may be causing the issue. > > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/a49f14bc-6804-4ba8-a033-752a6da2a9cb%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-users/a49f14bc-6804-4ba8-a033-752a6da2a9cb%40googlegroups.com?utm_medium=email_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 <http://2015.puppetconf.com/>** is right around the corner! Join us October 5-9 in Portland, OR. **Register now <https://puppetconf2015.eventbrite.com/>**.* -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK45VpjwwUeUb%2BbVYJC8cLEyQt-50QJEiJcWV-jthEvJGA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Managing Chocolatey sources with File resource and Template on Windows 7 x64 SP1
On Tue, Sep 15, 2015 at 1:24 PM, jmp242 <jp10...@gmail.com> wrote: > The template file was created in Geppeto, and has crlf line endings. The > chocolatey.config also has crlf line endings. This is tested using the file > command on Scientific Linux 7.1. For testing the windows file, I copied it > over SMB from the windows computer. > This sounds like a possible Puppet bug. If you can get a simple repro up as a github repo (remove Chocolatey from the equation though as it changes the file), we can test it out. I created something similar once for the similar issue I mentioned (PUP-927[1]) - puppet-simple_templates[2]. Once you have a repro without chocolatey being part of the equation, create a ticket in JIRA[3] to followup. If it turns out it has something to do with Chocolatey instead, there is already have an issue not to mess with the config file if there are no changes[4], which should be fixed in 0.9.9.9. [1] https://tickets.puppetlabs.com/browse/PUP-927 [2] https://github.com/ferventcoder/puppet-simple_templates [3] https://tickets.puppetlabs.com/browse/PUP [4] https://github.com/chocolatey/choco/issues/364 > > > > > On Wednesday, September 9, 2015 at 2:26:38 PM UTC-4, Rob Reynolds wrote: >> >> Can you take a look at your line endings in the template file? And then >> determine what the line endings are in the actual chocolatey.config after >> choco.exe runs? >> >> On Fri, Sep 4, 2015 at 8:25 AM, jmp242 <jp1...@gmail.com> wrote: >> >>> 64 bit. >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Puppet Users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to puppet-users...@googlegroups.com. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/puppet-users/05bd8bec-247e-44a0-870b-2936a038c41c%40googlegroups.com >>> <https://groups.google.com/d/msgid/puppet-users/05bd8bec-247e-44a0-870b-2936a038c41c%40googlegroups.com?utm_medium=email_source=footer> >>> . >>> >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> Rob Reynolds >> Developer, Puppet Labs >> >> *PuppetConf 2015 <http://2015.puppetconf.com/> is coming to Portland, >> Oregon! Join us October 5-9.* >> *Register now to take advantage of the Final Countdown discount >> <https://www.eventbrite.com/e/puppetconf-2015-october-5-9-register-now-its-the-final-countdown-tickets-13115894995?discount=FinalCountdown> >> * >> *—**save $149!* >> > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/040de04a-5720-4726-80d3-5203c8c80943%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-users/040de04a-5720-4726-80d3-5203c8c80943%40googlegroups.com?utm_medium=email_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 <http://2015.puppetconf.com/>** is right around the corner! Join us October 5-9 in Portland, OR. **Register now <https://puppetconf2015.eventbrite.com/>**.* -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK7EonJLRta1%2B0QuWBpH26XktV2-68f4d-v6ORrjcB6A%3DA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Announce: Puppet-Agent 1.2.4, Puppet 4.2.2, Facter 3.1.0
On Thu, Sep 17, 2015 at 6:01 AM, Dirk Heinrichs < dirk.heinri...@recommind.com> wrote: > Am 17.09.2015 um 12:53 schrieb Francois Lafont: > > It's a curious situation where there is an execution of a software during > its upgrade. > > > No, that's quite normal. Think "yum upgrade" upgrading yum itself on Linux. > It's quite normal on a POSIX system, but the same just does not apply to Windows. Perhaps if you read through MODULES-2040[1] you will better understand why it is harder to do on Windows. It's not as simple as replacing all of the files, which you can easily do on a POSIX system. LInux will happily let you replace files b/c it holds everything in memory, where Windows does not. [1] https://tickets.puppetlabs.com/browse/MODULES-2040 > > > Finally, it seems to me a not reasonable situation, and we can't hope a > normal behavior during a such situation. > > > I did this for quite some time now, let various 3.x versions upgrade > themselves to their successors w/o problems on both Linux and Win 2008. The > self-upgrade from agent 1.2.2 to 1.2.4 also works fine on Win 2008. It just > seems to be special to Win 2012. > It *can* work, it's just not deterministic. As you are seeing. > > Bye... > > Dirk > -- > > *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions > *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach > *Tel*: +49 2226 159 (Ansage) 1149 > *Email*: d...@recommind.com > *Skype*: dirk.heinrichs.recommind > www.recommind.com > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/55FA9D84.5030406%40recommind.com > <https://groups.google.com/d/msgid/puppet-users/55FA9D84.5030406%40recommind.com?utm_medium=email_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 <http://2015.puppetconf.com/>** is right around the corner! Join us October 5-9 in Portland, OR. **Register now <https://puppetconf2015.eventbrite.com/>**.* -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK5W3uQTnXfAmaJ8GPz9A%3DMiiZwb0pTxd7ORn7B0KuVF0A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] some thing error when get the facter information
Is it possible the language pack you are using is causing issues (unicode characters are sometimes known to cause issues)? Do you have the WMI service enabled? On Tue, Sep 8, 2015 at 9:47 AM, 杨微微 <wede2...@gmail.com> wrote: > > > > when i running puppet agent -t to sync to master: > > puppet agnet : 3.8.1 > facter : 2.3.0 > system : Microsoft Windows Server 2008 R2 Enterprise > > C:\Windows\system32>puppet agent -t > Could not retrieve fact='kernelrelease', resolution='': failed > to par > se display name of moniker > `winmgmts:{impersonationLevel=impersonate}!//./root/c > imv2' > HRESULT error code:0x8004103b > > Could not retrieve fact='kernelversion', resolution='': > undefined met > hod `split' for nil:NilClass > Could not retrieve fact='kernelmajversion', resolution='': > undefined > method `split' for nil:NilClass > Could not retrieve fact='os', resolution='': failed to parse > display > name of moniker `winmgmts:{impersonationLevel=impersonate}!//./root/cimv2' > HRESULT error code:0x8004103b > > Could not retrieve fact='os', resolution='': failed to parse > display > name of moniker `winmgmts:{impersonationLevel=impersonate}!//./root/cimv2' > HRESULT error code:0x8004103b > > Could not retrieve fact='os', resolution='': failed to parse > display > name of moniker `winmgmts:{impersonationLevel=impersonate}!//./root/cimv2' > HRESULT error code:0x8004103b > Could not retrieve fact='os', resolution='': failed to > parse display > name of moniker `winmgmts:{impersonationLevel=impersonate}!//./root/cimv2' > HRESULT error code:0x8004103b > > Could not retrieve fact='os', resolution='': failed to parse > display > name of moniker `winmgmts:{impersonationLevel=impersonate}!//./root/cimv2' > HRESULT error code:0x8004103b > > Could not retrieve fact='os', resolution='': failed to parse > display > name of moniker `winmgmts:{impersonationLevel=impersonate}!//./root/cimv2' > HRESULT error code:0x8004103b > > Could not retrieve fact='os', resolution='': failed to parse > display > name of moniker `winmgmts:{impersonationLevel=impersonate}!//./root/cimv2' > HRESULT error code:0x8004103b > > Could not retrieve fact='os', resolution='': failed to parse > display > name of moniker `winmgmts:{impersonationLevel=impersonate}!//./root/cimv2' > HRESULT error code:0x8004103b > > Could not retrieve fact='os', resolution='': failed to parse > display > name of moniker `winmgmts:{impersonationLevel=impersonate}!//./root/cimv2' > HRESULT error code:0x8004103b > > Error: Could not find a suitable provider for file > Error: Could not prepare for execution: Got 18 failure(s) while > initializing: > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/9e0a97a3-4d4c-48cc-9ced-50bfa020acab%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-users/9e0a97a3-4d4c-48cc-9ced-50bfa020acab%40googlegroups.com?utm_medium=email_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 <http://2015.puppetconf.com/> is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Final Countdown discount <https://www.eventbrite.com/e/puppetconf-2015-october-5-9-register-now-its-the-final-countdown-tickets-13115894995?discount=FinalCountdown> * *—**save $149!* -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK4U-_pks6Uv-tM46a-kXe-HMv90Zc%2BtToEqUNrbjy%3DM1w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Managing Chocolatey sources with File resource and Template on Windows 7 x64 SP1
Can you take a look at your line endings in the template file? And then determine what the line endings are in the actual chocolatey.config after choco.exe runs? On Fri, Sep 4, 2015 at 8:25 AM, jmp242 <jp10...@gmail.com> wrote: > 64 bit. > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/05bd8bec-247e-44a0-870b-2936a038c41c%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-users/05bd8bec-247e-44a0-870b-2936a038c41c%40googlegroups.com?utm_medium=email_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 <http://2015.puppetconf.com/> is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Final Countdown discount <https://www.eventbrite.com/e/puppetconf-2015-october-5-9-register-now-its-the-final-countdown-tickets-13115894995?discount=FinalCountdown> * *—**save $149!* -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK5h2zbgUWJAaT%3DJsyR1A2JLt0i4s9NkYwTdX1Uxsz3n-g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Managing Chocolatey sources with File resource and Template on Windows 7 x64 SP1
On Tue, Sep 1, 2015 at 7:50 AM, jmp242 <jp10...@gmail.com> wrote: > So I'm using Puppet 3.8.1 on Windows 7 x64 and managing a configuration > file using a template. > file { 'chocolatey.config': > path=> "C:/ProgramData/chocolatey/config/chocolatey.config", > content => template('yum/chocolatey.config.erb'), > owner => 'SYSTEM', > group => 'Administrators', > mode=> '0775', > ensure => present, > require => Exec['chocolatelyinstall'], > } > > The template file grabs values from a foreman parameter: > > http://www.w3.org/2001/XMLSchema; xmlns:xsi=" > http://www.w3.org/2001/XMLSchema-instance;> > > true > 2700 > > https://chocolatey.org/api/v2/; > disabled="true" /> > disabled="false" /> > > > > > "false" /> > > > > > > Every time it runs, even one manual run right after another, it changes > the file from one hash to a different one, always the same 2 hashes, and > the contents of the file (text) are the same each time. I also get a > FileBucket got a duplicate file each time. > Notice: /Stage[main]/Yum/File[chocolatey.config]/content: > > > > Info: Computing checksum on file C:/ProgramData/chocolatey/config/ > chocolatey.con > fig > > Info: FileBucket got a duplicate file {md5}eedc18d21cf625bb6c04902e8a9dd409 > > Info: /Stage[main]/Yum/File[chocolatey.config]: Filebucketed C: > /ProgramData/choc > olatey/config/chocolatey.config to puppet with sum > eedc18d21cf625bb6c04902e8a9dd > 409 > > Notice: /Stage[main]/Yum/File[chocolatey.config]/content: content changed > '{md5} > eedc18d21cf625bb6c04902e8a9dd409' to > '{md5}4efbb2600ee773122152faec7ae80934' > > Any idea WTH is going on? > At first I thought it might be related to PUP-927[1], but that was "fixed" in 3.8.0. It appears that maybe it is similar to that or the fix in 3.8.0 was not enough. Is the Puppet version you have installed x86 or x64? [1] https://tickets.puppetlabs.com/browse/PUP-927 > > > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/b51075e6-422b-4614-88db-787618d89e6e%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-users/b51075e6-422b-4614-88db-787618d89e6e%40googlegroups.com?utm_medium=email_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 <http://2015.puppetconf.com/> is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Final Countdown discount <https://www.eventbrite.com/e/puppetconf-2015-october-5-9-register-now-its-the-final-countdown-tickets-13115894995?discount=FinalCountdown> * *—**save $149!* -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK4Ui84C%3DzSum0Njau_DSNbxe3N2z_V-BRfMKjp9%3DR_FbA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Puppet Windows Automation
On Monday, August 31, 2015, Matthew Stone <m...@souldo.net> wrote: > For instances like this, I've usually smashed everything into a one-liner > using the powershell provider. So...something along the lines of: > > command => " \$thing = ; Write-Host \"Puppet > ${thingamajig} is a $\thing\"" > > As can be seen above, it can start looking pretty ugly, especially if the > commands you are executing are a bit longwinded. You can get a lot more > power out of writing custom types/providers and it make for a lot cleaner > looking manifest, but there aren't a lot of publicly available > windows-specific ones in the wild right now. > I thought about a blog post series specifically about types and providers in Windows. > I think most people tend to steer towards DSC for that and hope for the > best. > > > On Thursday, August 27, 2015 at 9:06:13 AM UTC-7, Thomas Bartlett wrote: >> >> Nice one, I'll give that a go. You don't happen to know how I can set a >> variable to equal the result of a powershell command do you? I need to use >> the hostname of the machine as a parameter for another command. At the >> minute I'm using hard-coding which is obviously a cardinal sin. >> >> -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscr...@googlegroups.com > <javascript:_e(%7B%7D,'cvml','puppet-users%2bunsubscr...@googlegroups.com');> > . > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/137c1e96-4285-4a6c-a43a-d7d243fe70e6%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-users/137c1e96-4285-4a6c-a43a-d7d243fe70e6%40googlegroups.com?utm_medium=email_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 <http://2015.puppetconf.com/> is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Final Countdown discount <https://www.eventbrite.com/e/puppetconf-2015-october-5-9-register-now-its-the-final-countdown-tickets-13115894995?discount=FinalCountdown> * *—**save $149!* -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK7hknwfT3k9TWWX8Mr3tGZMA6n%3DWCHSUO9-D-U13JjBRw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Puppet Windows Automation
On Thu, Aug 27, 2015 at 9:26 AM, Peter Kristolaitis alte...@alter3d.ca wrote: We solve this issue by doing (kind of ugly) stuff like this in our modules: unless = 'if ( ! ( Get-Service mcollectived ) ) { exit 1 }', If you don't like that syntax, you may be able to use the $? or $LastExitCode variables that get set by PowerShell (I haven't tested this, however). Both of those have non-obvious gotchas. A good writeup on error handling in PS (not Puppet-specific) is here: http://blogs.technet.com/b/heyscriptingguy/archive/2011/05/12/powershell-error-handling-and-why-you-should-care.aspx Another great writeup for PowerShell confusion is http://joshua.poehls.me/2012/powershell-script-module-boilerplate/ The tl;dr of PowerShell scripts is that parser errors (incorrect PowerShell) will always exit with 0, so test your scripts with PowerShell and look at the last exit code. Another is that even setting $ErrorActionPreference = 'Stop' (to catch non-terminating errors) doesn't appear to catch external command errors (versus powershell function calls): [image: Inline image 1] PowerShell.exe -NoProfile -NonInteractive -NoLogo -ExecutionPolicy Bypass -Command $ErrorActionPreference = 'Stop';reg /query bob; Write-Host 'yo' - Peter On 08/27/2015 08:38 AM, Thomas Bartlett wrote: Hi Guys, So I've been working with puppet on windows and I think my approach is all wrong. I've been using the puppetlabs/powershell module to run commands, however I'm having difficulty with exit codes. Primarily puppet expects exit codes to denote success/failure, whereas powershell is returning objects (and giving a 0 exit code regardless of result). I'm automating the install of old bits of software, so getting meaningful answers out of the installers is pretty difficult, this means that the scripts are a bit ugly and not very idempotent. Typically I have to check a log file to find out if the install actually worked. Are there any examples out there of windows puppet automation that makes heavy use of the powershell module? Cheers, Tom -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/7b4f140b-05fd-4477-b8bc-62e14f54da70%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/7b4f140b-05fd-4477-b8bc-62e14f54da70%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/55DF1E29.40409%40alter3d.ca https://groups.google.com/d/msgid/puppet-users/55DF1E29.40409%40alter3d.ca?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Final Countdown discount https://www.eventbrite.com/e/puppetconf-2015-october-5-9-register-now-its-the-final-countdown-tickets-13115894995?discount=FinalCountdown * *—**save $149!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK7WtTGh5HHoCU4rBNLrVWvqsignfdzhooe52mQ_VH_-xg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Puppet Windows Automation
On Sat, Aug 29, 2015 at 9:22 AM, Rob Reynolds r...@puppetlabs.com wrote: On Thu, Aug 27, 2015 at 7:38 AM, Thomas Bartlett thomas.bartlett.1...@gmail.com wrote: Hi Guys, So I've been working with puppet on windows and I think my approach is all wrong. I've been using the puppetlabs/powershell module to run commands, however I'm having difficulty with exit codes. Primarily puppet expects exit codes to denote success/failure, whereas powershell is returning objects (and giving a 0 exit code regardless of result). I'm automating the install of old bits of software, so getting meaningful answers out of the installers is pretty difficult, this means that the scripts are a bit ugly and not very idempotent. Typically I have to check a log file to find out if the install actually worked. If you are automating the install of software, you should look at using either the built-in package resource I forgot to include a link with tips for using the built-in package resource - http://docs.puppetlabs.com/puppet/latest/reference/resources_package_windows.html or one of the Windows package providers, e.g. Chocolatey[1]. It also has a pre-built, ready to go internal package server[2] so you can put your packages somewhere in your network. Lastly, if you are looking at the Chocolatey route, note that the provider is almost finished with the install of choco on the machine[3] and using it as a provider for packages in the same run.[4] [1] https://forge.puppetlabs.com/chocolatey/chocolatey [2] https://forge.puppetlabs.com/chocolatey/chocolatey_server [3] https://github.com/chocolatey/puppet-chocolatey/pull/76 [4] https://cloud.githubusercontent.com/assets/63502/9509913/cadaf9ee-4c2a-11e5-9ca8-042b79cac217.png Are there any examples out there of windows puppet automation that makes heavy use of the powershell module? Cheers, Tom -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/7b4f140b-05fd-4477-b8bc-62e14f54da70%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/7b4f140b-05fd-4477-b8bc-62e14f54da70%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Final Countdown discount https://www.eventbrite.com/e/puppetconf-2015-october-5-9-register-now-its-the-final-countdown-tickets-13115894995?discount=FinalCountdown * *—**save $149!* -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Final Countdown discount https://www.eventbrite.com/e/puppetconf-2015-october-5-9-register-now-its-the-final-countdown-tickets-13115894995?discount=FinalCountdown * *—**save $149!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK6YS-2jmV35DP9_z%2BhywYPC89BTV7GyTdPJPeKp662bRA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Puppet Windows Automation
On Thu, Aug 27, 2015 at 7:38 AM, Thomas Bartlett thomas.bartlett.1...@gmail.com wrote: Hi Guys, So I've been working with puppet on windows and I think my approach is all wrong. I've been using the puppetlabs/powershell module to run commands, however I'm having difficulty with exit codes. Primarily puppet expects exit codes to denote success/failure, whereas powershell is returning objects (and giving a 0 exit code regardless of result). I'm automating the install of old bits of software, so getting meaningful answers out of the installers is pretty difficult, this means that the scripts are a bit ugly and not very idempotent. Typically I have to check a log file to find out if the install actually worked. If you are automating the install of software, you should look at using either the built-in package resource or one of the Windows package providers, e.g. Chocolatey[1]. It also has a pre-built, ready to go internal package server[2] so you can put your packages somewhere in your network. Lastly, if you are looking at the Chocolatey route, note that the provider is almost finished with the install of choco on the machine[3] and using it as a provider for packages in the same run.[4] [1] https://forge.puppetlabs.com/chocolatey/chocolatey [2] https://forge.puppetlabs.com/chocolatey/chocolatey_server [3] https://github.com/chocolatey/puppet-chocolatey/pull/76 [4] https://cloud.githubusercontent.com/assets/63502/9509913/cadaf9ee-4c2a-11e5-9ca8-042b79cac217.png Are there any examples out there of windows puppet automation that makes heavy use of the powershell module? Cheers, Tom -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/7b4f140b-05fd-4477-b8bc-62e14f54da70%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/7b4f140b-05fd-4477-b8bc-62e14f54da70%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Final Countdown discount https://www.eventbrite.com/e/puppetconf-2015-october-5-9-register-now-its-the-final-countdown-tickets-13115894995?discount=FinalCountdown * *—**save $149!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK57HpXDGjetf013WpCF3aiDh%3DL1TvtGr2Lr%2BLOahVca7Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Puppet Windows ARR
On Tue, Aug 25, 2015 at 11:30 AM, Sergiu Cornea s.cor...@my.westminster.ac.uk wrote: Hello guys, I have been asked to use Puppet in order to set-up Windows ARR, however, I have been searching all over Google but unfortunately, I couldn't find anything. For setting up the Web Server itself, you want to look at the windowsfeature[1] module. Once you determine the features you want, you can get the specific names by hopping on a Windows box (2008 and 2012 will have different feature names for the same things, so keep that in mind) and run Get-WindowsFeature. Then you can build what you need to set up the Web server. Here's an example of installing IIS and ASP.NET[2]. Now onto getting ARR installed. You can find redistributables for it at the bottom of this iis.net page[3]. If you go that route, you just need to build a package resource to install it. [1] https://forge.puppetlabs.com/puppet/windowsfeature [2] https://github.com/chocolatey/puppet-chocolatey_server/blob/master/manifests/init.pp#L24-L29 [3] http://www.iis.net/downloads/microsoft/application-request-routing Could someone please let me know where I can find more information about this as well as creating a Windows Server Cluster using Puppet? Thank you, Regards, Sergiu This message and its attachments are private and confidential. If you have received this message in error, please notify the sender and remove it and its attachments from your system. The University of Westminster is a charity and a company limited by guarantee. Registration number: 977818 England. Registered Office: 309 Regent Street, London W1B 2UW. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/cae81bc1-b495-4dfb-bf18-6e76f14afc0c%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/cae81bc1-b495-4dfb-bf18-6e76f14afc0c%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Final Countdown discount https://www.eventbrite.com/e/puppetconf-2015-october-5-9-register-now-its-the-final-countdown-tickets-13115894995?discount=FinalCountdown * *—**save $149!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK5R2Bp%2Bg9AY%3D5%3DvRcDbHJ60GqH33sSas1TgvP15%3DBy%3DMw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Re: install_options with package in windows
On Thu, Aug 20, 2015 at 12:11 PM, kaustubh chaudhari kaustu...@gmail.com wrote: Hi, Thanks for the reply, Yes I did that. The problem is : below are the install parameters with its options. /components vda,plugins when we add this in key value settings ['/components', 'vda,plugins'] How it will be treated as there is a , in between vda and plugins. It should be fine, unless you also need a space between the values. It puts all of the elements of the array back together with a space in between. If there is a space in any element, it will surround that with quotes. In the chocolatey package provider we've talked over the logic for determining how to pass your install_options[1]. [1] https://forge.puppetlabs.com/chocolatey/chocolatey#install-options-with-spaces I have tried the option you mentioned but no luck. -Kaustubh On Thursday, August 20, 2015 at 9:13:13 AM UTC-4, Robert wrote: Have you tried splitting keys and values? install_options = ['/components', 'vda,plugins', '/controllers', ' mydev.example.com', '/enable_hdx_ports', '/optimize', '/enable_remote_assistance', '/virtualmachine', '/nodesktopexperience', '/noreboot'], This is very close. /quiet /components vda,plugins /controllers mydev.example.com /enable_hdx_ports /optimize /enable_remote_assistance /virtualmachine /nodesktopexperience /noreboot should translate as install_options = ['/components', 'vda,plugins', '/controllers', ' mydev.example.com', '/enable_hdx_ports', '/optimize', '/enable_remote_assistance', '/virtualmachine', '/nodesktopexperience', '/noreboot'], If you are finding that the components bit isn't quite being passed correctly, you may try surrounding that part with quotes to see if it handles the , correctly. As in vda,plugins. But as I mentioned already, if there is a space, you need to split this one up as well. Something like 'vda,','plugins' You can also run with --debug --verbose and see how it is passing the options so you can see how you need to adjust. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/09840a8f-cb74-493b-ab11-aa85b0fbb493%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/09840a8f-cb74-493b-ab11-aa85b0fbb493%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Final Countdown discount https://www.eventbrite.com/e/puppetconf-2015-october-5-9-register-now-its-the-final-countdown-tickets-13115894995?discount=FinalCountdown * *—**save $149!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK4jQwh7jJKmuwoumVz_2xK8d2WUut5p7L%2Brz7mDGENwrQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Re: Windows batch file execution
On Mon, Aug 3, 2015 at 8:47 AM, Dimitri Yioulos dyiou...@gmail.com wrote: Again, I'm close on this. Using the correct path, as per Rob's write-up, did help. If I run the manifest interactively from the node, it works. But, running it on schedule from the puppetmaster doesn't. Any additional help would be greatly appreciated. It might be time to explore shifting that quick script over to puppet manifests so that Puppet can better handle the settings. puppet module install puppetlabs/windows ;) Here is what your first one should look like: registry_key { 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Active Setup Temp Folders': ensure = present, } registry_value { 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Active Setup Temp Folders\StateFlags0100': ensure = present, data = 2, type = 'dword', } Plus it doesn't have the issue of always running if there is nothing to do. The exec you have will run every time and report on it. On Wednesday, July 29, 2015 at 3:48:50 PM UTC-4, Dimitri Yioulos wrote: Hello, all. I'm trying to execute the following batch file (sageset.bat) on Win2k8 servers: @ECHO OFF REM Enable components to cleanup REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Active Setup Temp Folders /v StateFlags0100 /d 2 /t REG_DWORD /f REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\BranchCache /v StateFlags0100 /d 2 /t REG_DWORD /f REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Downloaded Program Files /v StateFlags0100 /d 2 /t REG_DWORD /f REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\GameNewsFiles /v StateFlags0100 /d 2 /t REG_DWORD /f ~ It makes changes to registry settings so that the disk cleanup utility will do a more thorough job of cleanup. It's the equivalent of running cleanmgr /d c: /sageset:100, which opens a dialog box that presents a list of files to clean that one can check. The following is in my manifest: exec { 'sageset.bat': path = $::path, command = cmd.exe /c c:\temp\sageset.bat, provider = windows, logoutput = true, } The results of the manifest run are that everything executed successfully. However, if I run cleanmgr /d c: /sageset:100 after that, none of the boxes is checked. Running the batch file in a Windows CLI does work, and if I run cleanmgr /d c: /sageset:100 after that, all of the boxes are checked. Why am I not getting this to work? Dimitri -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/5e717c33-6815-4e16-8833-fd12be0699a4%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/5e717c33-6815-4e16-8833-fd12be0699a4%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Early Bird discount https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyBird * *—**save $249!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK6xcUc12SZzmg8Rgxfit2B7M-BvPT%3Dc7oZwC%2B-O839t6Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Windows basic file permission error on some computers
On Tue, Jul 28, 2015 at 9:02 AM, jmp242 jp10...@gmail.com wrote: I'm using basic file permissions with puppet 3.8.1 on Windows 7 x64. I've got a resource: file { 'chocolatey.config': path= C:/ProgramData/chocolatey/config/chocolatey.config, content = template('yum/chocolatey.config.erb'), owner = 'SYSTEM', group = 'Administrators', mode= '0775', ensure = present, require = Exec['chocolatelyinstall'], } For a limited set of computers, I'm getting change from {md5}eedc18d21cf625bb6c04902e8a9dd409 to {md5}4efbb2600ee773122152faec7ae80934 failed: Failed to set group to 'S-1-5-32-544': Failed to initialize ACL: The parameter is incorrect. This seems pretty strange to me - doing the above has always worked before, and works on most computers. How might I go about debugging or fixing this? We recommend using the acl[1] resource for managing permissions on Windows. For debugging what you currently have, the best thing to do is start with the Puppet source[2] starting at the 3.8.1 tag and writing a test that recreates the above scenario and your expected output. Then use pry in places to determine what it is doing. You can also research any known bugs with mode and Windows in the 3.x series that were either resolved in 4.x or still exist. HTH [1] https://forge.puppetlabs.com/puppetlabs/acl [2] https://github.com/puppetlabs/puppet -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/85556532-7790-48ba-830b-32a0b7d96e85%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/85556532-7790-48ba-830b-32a0b7d96e85%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Early Bird discount https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyBird * *—**save $249!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK7N-fh3bnW6vS-d8EcWs%3DfVcVRft7AUu5KRPb7OvZRWKw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Re: Windows batch file execution
view of the registry. Let's take a look at one of your examples - REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Active Setup Temp Folders /v StateFlags0100 /d 2 /t REG_DWORD /f Do me a favor and look at HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Active Setup Temp Folders and tell me if you see what you are looking for there. Once you've determined that is the issue, we can go into how to fix it. Any other ideas? Dimitri On Wednesday, July 29, 2015 at 3:48:50 PM UTC-4, Dimitri Yioulos wrote: Hello, all. I'm trying to execute the following batch file (sageset.bat) on Win2k8 servers: @ECHO OFF REM Enable components to cleanup REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Active Setup Temp Folders /v StateFlags0100 /d 2 /t REG_DWORD /f REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\BranchCache /v StateFlags0100 /d 2 /t REG_DWORD /f REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Downloaded Program Files /v StateFlags0100 /d 2 /t REG_DWORD /f REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\GameNewsFiles /v StateFlags0100 /d 2 /t REG_DWORD /f ~ It makes changes to registry settings so that the disk cleanup utility will do a more thorough job of cleanup. It's the equivalent of running cleanmgr /d c: /sageset:100, which opens a dialog box that presents a list of files to clean that one can check. The following is in my manifest: exec { 'sageset.bat': path = $::path, command = cmd.exe /c c:\temp\sageset.bat, provider = windows, logoutput = true, } The results of the manifest run are that everything executed successfully. However, if I run cleanmgr /d c: /sageset:100 after that, none of the boxes is checked. Running the batch file in a Windows CLI does work, and if I run cleanmgr /d c: /sageset:100 after that, all of the boxes are checked. Why am I not getting this to work? Dimitri -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/ff647484-10b7-400f-8778-b747a9adbbb6%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/ff647484-10b7-400f-8778-b747a9adbbb6%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Early Bird discount https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyBird * *—**save $249!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK77sN9bd%3DyJDD%3DmrmroowMc25EpFiSjoiJAwGa%2BONaGeQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Re: Windows batch file execution
On Wed, Jul 29, 2015 at 4:28 PM, Dimitri Yioulos dyiou...@gmail.com wrote: Bob, I installed puppet-3.8.1-x64 on my 64-bit Win2k8 hosts. As you asked, I looked in the registry location, and saw StateFlags0100 REG_DWORD 0x0002 (2). That's what I'd expect. However, in HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Active Setup Temp Folders, where the batch file is supposed to make the change, I see StateFlags0100 REG_DWORD 0x (0), meaning it isn't changed when I run the manifest. Great catch! How do I remediate? I did a write up on this recently - take a look at Compensating for Redirection[1] and changing the path appropriately. [1] http://docs.puppetlabs.com/puppet/latest/reference/lang_windows_file_paths.html#compensating-for-redirection Dimitri On Wednesday, July 29, 2015 at 3:48:50 PM UTC-4, Dimitri Yioulos wrote: Hello, all. I'm trying to execute the following batch file (sageset.bat) on Win2k8 servers: @ECHO OFF REM Enable components to cleanup REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Active Setup Temp Folders /v StateFlags0100 /d 2 /t REG_DWORD /f REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\BranchCache /v StateFlags0100 /d 2 /t REG_DWORD /f REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Downloaded Program Files /v StateFlags0100 /d 2 /t REG_DWORD /f REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\GameNewsFiles /v StateFlags0100 /d 2 /t REG_DWORD /f ~ It makes changes to registry settings so that the disk cleanup utility will do a more thorough job of cleanup. It's the equivalent of running cleanmgr /d c: /sageset:100, which opens a dialog box that presents a list of files to clean that one can check. The following is in my manifest: exec { 'sageset.bat': path = $::path, command = cmd.exe /c c:\temp\sageset.bat, provider = windows, logoutput = true, } The results of the manifest run are that everything executed successfully. However, if I run cleanmgr /d c: /sageset:100 after that, none of the boxes is checked. Running the batch file in a Windows CLI does work, and if I run cleanmgr /d c: /sageset:100 after that, all of the boxes are checked. Why am I not getting this to work? Dimitri -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/cc065ede-60d5-42c9-860d-69eb5f5a4916%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/cc065ede-60d5-42c9-860d-69eb5f5a4916%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Early Bird discount https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyBird * *—**save $249!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK7d0RKoyYvsnyiNd3ua64cPiTwHgevMqw6hYf9Z2MxaUw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Cannot update Puppet 3.7.5 to 3.8.1 on Windows
On Fri, Jul 17, 2015 at 5:30 PM, Rob Reynolds r...@puppetlabs.com wrote: The ruby executable locking was likely exasperated by the wrong version of ruby in 3.7.5 - we've yanked the 3.7.5 release[1] based on what we've discovered this afternoon. [1] https://groups.google.com/forum/#!msg/puppet-dev/VtqadVFJKLM/e28O_so11fMJ https://groups.google.com/forum/m/?utm_medium=emailutm_source=footer#!msg/puppet-dev/VtqadVFJKLM/e28O_so11fMJ On Friday, July 17, 2015, Rob Reynolds r...@puppetlabs.com wrote: On Fri, Jul 17, 2015 at 4:38 PM, Rob Reynolds r...@puppetlabs.com wrote: On Fri, Jul 17, 2015 at 8:34 AM, Byron Miller byr...@gmail.com wrote: My windows team mentioned the same issue of not being able to upgrade the agent because of a ruby issue.. I haven't had much time yet to go jump in and help them, but this sounds exactly like what they reported. Bummer.. I think i'll move them to the PC1 agent and Puppet 4.2 since they're more greenfield and see if that saves them from re-deploying just to get to 3.8.1.. On Friday, July 17, 2015 at 8:08:52 AM UTC-5, cko wrote: By the way: ruby.exe is missing from *C:\puppet\sys\ruby\bin* Is this intended? This is most assuredly not intended. I can say that we don't really support using puppet to upgrade puppet - because file locking on Windows. It appears you have run into this. We have an upcoming epic for this in MODULES-2040[1], which will be similar to how Puppetlabs-Puppet_Agent will handle upgrades for WIndows agents[2][3]. I would highly suggest that you follow suit on those ideas until something is in place or upgrade out of band e.g. use something besides Puppet to upgrade Puppet on Windows. You can also try using the puppetversion module[4]. [1] https://tickets.puppetlabs.com/browse/MODULES-2040 [2] https://github.com/puppetlabs/puppetlabs-puppet_agent/blob/master/manifests/windows/install.pp#L38-L48 [3] https://github.com/puppetlabs/puppetlabs-puppet_agent/blob/master/templates/install_puppet.bat.erb [4] https://forge.puppetlabs.com/opentable/puppetversion As a followup, it appears puppetversion module doesn't allow the upgrades to happen successfully. We're looking at other possibilities for folks to try currently, including using PsExec[1] to resend the msiexec install command. [1] https://technet.microsoft.com/en-us/sysinternals/bb897553.aspx Also, anyone interested in looking at the MODULES-2040 approach should definitely read my comment[1] on known issues migrating the puppet_agent code over to a more generalized approach. [1] https://tickets.puppetlabs.com/browse/MODULES-2040?focusedCommentId=190065page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-190065 On Friday, July 17, 2015 at 2:59:34 PM UTC+2, cko wrote: Hi all, updating Puppet from 3.7.5 to 3.8.1 fails on all my Windows Server 2008R2 nodes. I'm using the following code (puppet.pp): *package { 'Puppet':* * ensure = 3.8.1,* * source = puppet\\puppetsamba\\puppet_agent\\windows\\puppet-3.8.1.msi,* * provider= windows,* * install_options = { 'INSTALLDIR' = 'C:\puppet' }* * }* This completes without any problem: *C:\Scriptspuppet apply puppet.pp* *Notice: Compiled catalog for server.local.domain in environment production in 1.33 seconds* *Notice: /Stage[main]/Main/Package[Puppet]/ensure: ensure changed '3.7.5' to '3.8.1'* *Notice: Finished catalog run in 84.66 seconds* But after the installation I am unable to use Puppet: *C:\Scriptspuppet agent -t* *'ruby' is not recognized as an internal or external command, operable program or batch file.* Any ideas? -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/ab190044-e33f-45bd-8948-6160c251243d%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/ab190044-e33f-45bd-8948-6160c251243d%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Early Bird discount https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyBird * *—**save $249!* -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Early Bird discount https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyBird * *—**save $249!* -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015
Re: [Puppet Users] Re: Possibly bug in Puppetlabs/Registry module
Given we've discovered a bug in 3.7.5 and have recalled it for an incorrect version of Ruby[1], it's possible this issue was limited to just Puppet 3.7.5. Registry could be one thing that would likely have a large effect given the amount of changes we put in to make registry work again on Ruby 2.1.x. [1] https://groups.google.com/forum/#!msg/puppet-dev/VtqadVFJKLM/e28O_so11fMJ On Fri, May 1, 2015 at 2:58 PM, Rob Reynolds r...@puppetlabs.com wrote: On Fri, May 1, 2015 at 12:59 PM, Mark Wolek markwo...@gmail.com wrote: C:\Users\Administratorpuppet apply --version 3.7.5 C:/ProgramData/PuppetLabs/puppet/etc/modules └─┬ puppetlabs-registry (v1.1.0) └── puppetlabs-stdlib (v4.6.0) No puppetmaster server is involved. Thanks! It's possible we may have a bug. I created MODULES-2005[1] to follow up. Thanks! [1] https://tickets.puppetlabs.com/browse/MODULES-2005 On Tuesday, April 28, 2015 at 12:38:23 PM UTC-5, Rob Reynolds wrote: On Mon, Apr 27, 2015 at 11:28 AM, Mark Wolek mark...@gmail.com wrote: Thanks John! It appears to open a ticket I do so on the GitHub site by logging in, is this correct? The reason for suspecting the lack of string termination is due to what we see in the Registry GUI, which is random characters and words after the string, then you hit Refresh on the page, the random characters and strings change. It does seem specific to a hyphen being in the string, but I will test again to be certain. Hi Mark, What version of the registry module are you using? What version of the Puppet agent are you on? The issues you stated above were known issues that we believe we have corrected in newer versions of Puppet. We also vendor Ruby into the Puppet Installer for Windows (and we've done this almost since the first release supporting Windows), so we can usually rule out Ruby compatibilities in some respects, but not always with modules. Thanks! Mark On Monday, April 27, 2015 at 9:06:31 AM UTC-5, jcbollinger wrote: On Friday, April 24, 2015 at 1:52:17 PM UTC-5, Mark Wolek wrote: We believe this has something to do with puppet inserting strings that are not null terminated, but I've had no luck at all adding termination to the string... have tried single and double quoting it. \x0 \00 \000 so many types of termination tried but nothing seems to do the trick... Having examined the source of the latest version of this module, I can tell you that Puppet relies on registry support from the Ruby standard library to handle the low-level details of registry manipulation. As far as I can tell, Puppet's own code does not do any parsing or processing of registry values that would be sensitive to a hyphen character in the string. Were you speculating about that being related to the problem, or do you in fact see different results when the array elements do not contain hyphens? I am anyway inclined to think that the problem is NOT wrong string termination, at least of the values you specify in your manifest, because Get-ItemProperty is giving you an array value in which the first element appears completely correct. The problem could, however, be related to incorrectly specifying the size of the *array* to Windows, or failing to provide an array terminator (I'm not much of a registry tinkerer, so I'm not sure which would actually be applicable). I encourage you to file a ticket against the module. I am uncertain whether the issue is there or in the Ruby standard library because the docs of the relevant library class suffer from the vagueness typical of Ruby docs, but the module maintainers are best positioned to evaluate that. Even if the problem turns out to be in the underlying Ruby library, it does not appear that the module's tests include any that exercise setting or retrieving values of type array, and a ticket against the module *should* result at least in addition of such tests. John -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/c0503ad5-5d72-48ed-868f-522491f93e78%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/c0503ad5-5d72-48ed-868f-522491f93e78%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Early Adopter discount https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyAdopter * *—**save $349!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from
Re: [Puppet Users] Re: Cannot update Puppet 3.7.5 to 3.8.1 on Windows
On Fri, Jul 17, 2015 at 4:38 PM, Rob Reynolds r...@puppetlabs.com wrote: On Fri, Jul 17, 2015 at 8:34 AM, Byron Miller byr...@gmail.com wrote: My windows team mentioned the same issue of not being able to upgrade the agent because of a ruby issue.. I haven't had much time yet to go jump in and help them, but this sounds exactly like what they reported. Bummer.. I think i'll move them to the PC1 agent and Puppet 4.2 since they're more greenfield and see if that saves them from re-deploying just to get to 3.8.1.. On Friday, July 17, 2015 at 8:08:52 AM UTC-5, cko wrote: By the way: ruby.exe is missing from *C:\puppet\sys\ruby\bin* Is this intended? This is most assuredly not intended. I can say that we don't really support using puppet to upgrade puppet - because file locking on Windows. It appears you have run into this. We have an upcoming epic for this in MODULES-2040[1], which will be similar to how Puppetlabs-Puppet_Agent will handle upgrades for WIndows agents[2][3]. I would highly suggest that you follow suit on those ideas until something is in place or upgrade out of band e.g. use something besides Puppet to upgrade Puppet on Windows. You can also try using the puppetversion module[4]. [1] https://tickets.puppetlabs.com/browse/MODULES-2040 [2] https://github.com/puppetlabs/puppetlabs-puppet_agent/blob/master/manifests/windows/install.pp#L38-L48 [3] https://github.com/puppetlabs/puppetlabs-puppet_agent/blob/master/templates/install_puppet.bat.erb [4] https://forge.puppetlabs.com/opentable/puppetversion Also, anyone interested in looking at the MODULES-2040 approach should definitely read my comment[1] on known issues migrating the puppet_agent code over to a more generalized approach. [1] https://tickets.puppetlabs.com/browse/MODULES-2040?focusedCommentId=190065page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-190065 On Friday, July 17, 2015 at 2:59:34 PM UTC+2, cko wrote: Hi all, updating Puppet from 3.7.5 to 3.8.1 fails on all my Windows Server 2008R2 nodes. I'm using the following code (puppet.pp): *package { 'Puppet':* * ensure = 3.8.1,* * source = puppet\\puppetsamba\\puppet_agent\\windows\\puppet-3.8.1.msi,* * provider= windows,* * install_options = { 'INSTALLDIR' = 'C:\puppet' }* * }* This completes without any problem: *C:\Scriptspuppet apply puppet.pp* *Notice: Compiled catalog for server.local.domain in environment production in 1.33 seconds* *Notice: /Stage[main]/Main/Package[Puppet]/ensure: ensure changed '3.7.5' to '3.8.1'* *Notice: Finished catalog run in 84.66 seconds* But after the installation I am unable to use Puppet: *C:\Scriptspuppet agent -t* *'ruby' is not recognized as an internal or external command, operable program or batch file.* Any ideas? -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/ab190044-e33f-45bd-8948-6160c251243d%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/ab190044-e33f-45bd-8948-6160c251243d%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Early Bird discount https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyBird * *—**save $249!* -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Early Bird discount https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyBird * *—**save $249!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK6iDvVv8dpDsL_Oa3bRBef5VyF%2BPNc%3DYnxnSo9uBEWoSw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Re: Cannot update Puppet 3.7.5 to 3.8.1 on Windows
On Fri, Jul 17, 2015 at 8:34 AM, Byron Miller byr...@gmail.com wrote: My windows team mentioned the same issue of not being able to upgrade the agent because of a ruby issue.. I haven't had much time yet to go jump in and help them, but this sounds exactly like what they reported. Bummer.. I think i'll move them to the PC1 agent and Puppet 4.2 since they're more greenfield and see if that saves them from re-deploying just to get to 3.8.1.. On Friday, July 17, 2015 at 8:08:52 AM UTC-5, cko wrote: By the way: ruby.exe is missing from *C:\puppet\sys\ruby\bin* Is this intended? This is most assuredly not intended. I can say that we don't really support using puppet to upgrade puppet - because file locking on Windows. It appears you have run into this. We have an upcoming epic for this in MODULES-2040[1], which will be similar to how Puppetlabs-Puppet_Agent will handle upgrades for WIndows agents[2][3]. I would highly suggest that you follow suit on those ideas until something is in place or upgrade out of band e.g. use something besides Puppet to upgrade Puppet on Windows. You can also try using the puppetversion module[4]. [1] https://tickets.puppetlabs.com/browse/MODULES-2040 [2] https://github.com/puppetlabs/puppetlabs-puppet_agent/blob/master/manifests/windows/install.pp#L38-L48 [3] https://github.com/puppetlabs/puppetlabs-puppet_agent/blob/master/templates/install_puppet.bat.erb [4] https://forge.puppetlabs.com/opentable/puppetversion On Friday, July 17, 2015 at 2:59:34 PM UTC+2, cko wrote: Hi all, updating Puppet from 3.7.5 to 3.8.1 fails on all my Windows Server 2008R2 nodes. I'm using the following code (puppet.pp): *package { 'Puppet':* * ensure = 3.8.1,* * source = puppet\\puppetsamba\\puppet_agent\\windows\\puppet-3.8.1.msi,* * provider= windows,* * install_options = { 'INSTALLDIR' = 'C:\puppet' }* * }* This completes without any problem: *C:\Scriptspuppet apply puppet.pp* *Notice: Compiled catalog for server.local.domain in environment production in 1.33 seconds* *Notice: /Stage[main]/Main/Package[Puppet]/ensure: ensure changed '3.7.5' to '3.8.1'* *Notice: Finished catalog run in 84.66 seconds* But after the installation I am unable to use Puppet: *C:\Scriptspuppet agent -t* *'ruby' is not recognized as an internal or external command, operable program or batch file.* Any ideas? -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/ab190044-e33f-45bd-8948-6160c251243d%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/ab190044-e33f-45bd-8948-6160c251243d%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Early Bird discount https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyBird * *—**save $249!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK7vUAyC-8Y6qxzZ%2BYjfVuJo49iyBXvinZv_2g%2B3AK3dWA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Cannot update Puppet 3.7.5 to 3.8.1 on Windows
The ruby executable locking was likely exasperated by the wrong version of ruby in 3.7.5 - we've yanked the 3.7.5 release[1] based on what we've discovered this afternoon. [1] https://groups.google.com/forum/#!msg/puppet-dev/VtqadVFJKLM/e28O_so11fMJ https://groups.google.com/forum/m/?utm_medium=emailutm_source=footer#!msg/puppet-dev/VtqadVFJKLM/e28O_so11fMJ On Friday, July 17, 2015, Rob Reynolds r...@puppetlabs.com wrote: On Fri, Jul 17, 2015 at 4:38 PM, Rob Reynolds r...@puppetlabs.com javascript:_e(%7B%7D,'cvml','r...@puppetlabs.com'); wrote: On Fri, Jul 17, 2015 at 8:34 AM, Byron Miller byr...@gmail.com javascript:_e(%7B%7D,'cvml','byr...@gmail.com'); wrote: My windows team mentioned the same issue of not being able to upgrade the agent because of a ruby issue.. I haven't had much time yet to go jump in and help them, but this sounds exactly like what they reported. Bummer.. I think i'll move them to the PC1 agent and Puppet 4.2 since they're more greenfield and see if that saves them from re-deploying just to get to 3.8.1.. On Friday, July 17, 2015 at 8:08:52 AM UTC-5, cko wrote: By the way: ruby.exe is missing from *C:\puppet\sys\ruby\bin* Is this intended? This is most assuredly not intended. I can say that we don't really support using puppet to upgrade puppet - because file locking on Windows. It appears you have run into this. We have an upcoming epic for this in MODULES-2040[1], which will be similar to how Puppetlabs-Puppet_Agent will handle upgrades for WIndows agents[2][3]. I would highly suggest that you follow suit on those ideas until something is in place or upgrade out of band e.g. use something besides Puppet to upgrade Puppet on Windows. You can also try using the puppetversion module[4]. [1] https://tickets.puppetlabs.com/browse/MODULES-2040 [2] https://github.com/puppetlabs/puppetlabs-puppet_agent/blob/master/manifests/windows/install.pp#L38-L48 [3] https://github.com/puppetlabs/puppetlabs-puppet_agent/blob/master/templates/install_puppet.bat.erb [4] https://forge.puppetlabs.com/opentable/puppetversion Also, anyone interested in looking at the MODULES-2040 approach should definitely read my comment[1] on known issues migrating the puppet_agent code over to a more generalized approach. [1] https://tickets.puppetlabs.com/browse/MODULES-2040?focusedCommentId=190065page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-190065 On Friday, July 17, 2015 at 2:59:34 PM UTC+2, cko wrote: Hi all, updating Puppet from 3.7.5 to 3.8.1 fails on all my Windows Server 2008R2 nodes. I'm using the following code (puppet.pp): *package { 'Puppet':* * ensure = 3.8.1,* * source = puppet\\puppetsamba\\puppet_agent\\windows\\puppet-3.8.1.msi,* * provider= windows,* * install_options = { 'INSTALLDIR' = 'C:\puppet' }* * }* This completes without any problem: *C:\Scriptspuppet apply puppet.pp* *Notice: Compiled catalog for server.local.domain in environment production in 1.33 seconds* *Notice: /Stage[main]/Main/Package[Puppet]/ensure: ensure changed '3.7.5' to '3.8.1'* *Notice: Finished catalog run in 84.66 seconds* But after the installation I am unable to use Puppet: *C:\Scriptspuppet agent -t* *'ruby' is not recognized as an internal or external command, operable program or batch file.* Any ideas? -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com javascript:_e(%7B%7D,'cvml','puppet-users%2bunsubscr...@googlegroups.com'); . To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/ab190044-e33f-45bd-8948-6160c251243d%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/ab190044-e33f-45bd-8948-6160c251243d%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Early Bird discount https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyBird * *—**save $249!* -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Early Bird discount https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyBird * *—**save $249!* -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Early Bird discount https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995
Re: [Puppet Users] Re: Need help with python msi install on windows
On Fri, Jul 10, 2015 at 2:12 AM, Gene Fontanilla ginofontani...@gmail.com wrote: The install box pops up and still requires me to choose the options I tried your script too. still same results. On Thursday, July 9, 2015 at 2:30:52 AM UTC+8, Rob Reynolds wrote: On Tue, Jul 7, 2015 at 12:40 AM, Gene Fontanilla ginofon...@gmail.com wrote: To verify, the file you have located at c:/PreRecap/python-2.7.5. amd64.msi is actually a downloaded MSI file correct? yes bob you are correct So double click the file, it should come up with an install box. Exit it without finishing the install. Then try running it from the command line: msiexec /norestart /i c:\PreRecap\python.amd64.msi TARGETDIR=c:/python27 WHICHUSERS=ALL Note that msiexec may not like your forward slashes, which may indicate the issue. If that can go all the way through, then uninstall and try adding '/qn' (e.g. 'msiexec /qn /norestart /i ...') and running it again. I'm guessing you didn't make it this far. Once you have all of the switches set properly, then you can plug it into the built-in package resource. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/d0203c7f-1d6e-463e-aab3-3b89b9ed9c6f%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/d0203c7f-1d6e-463e-aab3-3b89b9ed9c6f%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Early Adopter discount https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyAdopter * *—**save $349!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/4e4dc991-f770-45d7-a2fc-068480d7cefd%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/4e4dc991-f770-45d7-a2fc-068480d7cefd%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Early Bird discount https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyBird * *—**save $249!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK7v3POZN9Yc-5%2B6a9_Mo7mkS4m-is3G0xwqYzscagLR%3DQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Puppet 4.2. and latest Puppet Agent 1.2.1-x64 on Windows 2008 r2 keeps crashing with error 400: Invalid byte sequence in UTF-8
/vendor_ruby/puppet/network/http/route.rb:81:in `process' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/route.rb:87:in `process' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/route.rb:87:in `process' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/handler.rb:60:in `process' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58:in `profile' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler.rb:51:in `profile' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/handler.rb:58:in `process' file:/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server/master.rb:39:in `handleRequest' Puppet$$Server$$Master_1527977328.gen:13:in `handleRequest' request_handler_core.clj:274:in `invoke' request_handler_service.clj:14:in `handle_request' request_handler.clj:3:in `invoke' request_handler.clj:3:in `invoke' core.clj:626:in `invoke' core.clj:2468:in `doInvoke' master_core.clj:47:in `invoke' ring.clj:22:in `invoke' ring.clj:13:in `invoke' comidi.clj:267:in `invoke' ringutils.clj:106:in `invoke' ringutils.clj:62:in `invoke' ringutils.clj:68:in `invoke' ringutils.clj:118:in `invoke' jetty9_core.clj:408:in `invoke' -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/C224994E-EC8F-443C-AC28-C72CC2E214E9%40gt-it.de . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Early Bird discount https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyBird * *—**save $249!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK5gGFbku%3DBZ92kVpBXmvZKdHQhkR__ukm1wv%2BKYtawtkw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Re: Need help with python msi install on windows
On Tue, Jul 7, 2015 at 12:40 AM, Gene Fontanilla ginofontani...@gmail.com wrote: To verify, the file you have located at c:/PreRecap/python-2.7.5. amd64.msi is actually a downloaded MSI file correct? yes bob you are correct So double click the file, it should come up with an install box. Exit it without finishing the install. Then try running it from the command line: msiexec /norestart /i c:\PreRecap\python.amd64.msi TARGETDIR=c:/python27 WHICHUSERS=ALL Note that msiexec may not like your forward slashes, which may indicate the issue. If that can go all the way through, then uninstall and try adding '/qn' (e.g. 'msiexec /qn /norestart /i ...') and running it again. Once you have all of the switches set properly, then you can plug it into the built-in package resource. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/d0203c7f-1d6e-463e-aab3-3b89b9ed9c6f%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/d0203c7f-1d6e-463e-aab3-3b89b9ed9c6f%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Early Adopter discount https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyAdopter * *—**save $349!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK5q9V79G1FU-nVicLMyki67a9Y_9D6HDg-KjX2up9E3aA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Re: hiera and puppet environments ( directory)
On Wed, Jul 8, 2015 at 3:07 AM, PAN dheepakz...@gmail.com wrote: Hi Rob , On the puppet agent node, when I try to install ssh packages it is failing with Error 400 on SERVER: Evaluation Error: Error while evaluating a Function Call, Could not find data item ssh_packages in any Hiera data file error. puppet agent -t works fine when modules does not contain hiera look ups. The issue seems hiera looksups is not working for puppet client/agent node. However hiera lookups and ssh_packages working fine on master node when I use puppet apply -e 'include openssh:sshclient' module Both puppet master and puppet client are using # puppet --version 3.8.0 (Puppet Enterprise 3.8.0), # hiera -v 1.3.4 On master node: ___ [root@pupmaster manifests]# puppet apply -e 'include openssh::sshclient' Notice: Compiled catalog for pupmaster-dpallipa.idc.oracle.com in environment production in 5.77 seconds Notice: /Stage[main]/Openssh::Sshclient/Package[openssh-ldap]/ensure: created Notice: Finished catalog run in 20.13 seconds [root@pupmaster manifests]# __ # cat /etc/hiera.yaml Hiera to search yaml files # :backends: - yaml :hierarchy: # - %{operatingsystem} - %{osfamily} - common - defaults :yaml: :datadir: /var/lib/hiera/ __ # cd /var/lib/hiera/ # ls common.yaml defaults.yaml RedHat.yaml #cat RedHat.yaml permitt_root_login: 'yes' ssh_service: 'sshd' ssh_packages: - 'openssh-ldap' - 'openssh' - 'openssh-clients' - 'openssh-server' __ # cat common.yaml permit_root_login: 'no' - # cat defaults.yaml environment: production --- My ssh package instal module: # cat sshclient.pp class openssh::sshclient { $ssh_packages=hiera('ssh_packages') $permit_root_login=hiera('permitt_root_login') $sshservice=hiera('ssh_service') package {$ssh_packages: ensure = 'present', before = File['/etc/ssh/sshd_config'], } file {'/etc/ssh/sshd_config': ensure = present, owner = 'root', group = 'root', mode = '0600', content = template('openssh/sshd_config.erb'), } service {$sshservice: subscribe = File['/etc/ssh/sshd_config'], ensure = running, enable = true, hasstatus = true, hasrestart = true, } } On puppetclient/agent node: --- [root@pupclient2 . Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a Function Call, Could not find data item ssh_packages in any Hiera data file and no default supplied at /etc/puppetlabs/puppet/environments/production/modules/openssh/manifests/sshclient.pp:2:16 on node pupclient2. Error: Could not retrieve catalog; skipping run [root@pupclient2 - Is there anything I am missing here /any thing I need to enable to make puppet agent to work fine with hiera. What do you get when you run facter operatingsystem and facter osfamily on pupclient2? Thanks, On Friday, June 19, 2015 at 2:13:30 PM UTC+5:30, Helen Paterson wrote: Hi, I'm trying to set-up puppet environment so that our ymal files can usernames and passwords for Production and test ( dq), modules will be the same. I have run through the documentation but am getting the following error: client error Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find data item classes in any Hiera data file and no default supplied at /e tc/puppet/environments/dq/manifests/windows-servers.pp:54 on node hp-test2008r2. debug from master Cannot find datafile /var/lib/hiera/ I don't understand why puppet is looking in /var/lib/hiera/. before setting up environments hiera was working and looking at /etc/puppethiera.yaml but default hiera.yaml :datadir: '/etc/puppet/environments/%{::environment}/hieradata' -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/a26af05d-8078-45b7-9d60-24f69e7e6af3%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/a26af05d-8078-45b7-9d60-24f69e7e6af3%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take
Re: [Puppet Users] hiera and puppet environments ( directory)
On Mon, Jul 6, 2015 at 3:02 PM, Rob Reynolds r...@puppetlabs.com wrote: On Fri, Jun 19, 2015 at 3:43 AM, Helen Paterson helen.pater...@gmail.com wrote: Hi, I'm trying to set-up puppet environment so that our ymal files can usernames and passwords for Production and test ( dq), modules will be the same. I have run through the documentation but am getting the following error: client error Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find data item classes in any Hiera data file and no default supplied at /e tc/puppet/environments/dq/manifests/windows-servers.pp:54 on node hp-test2008r2. debug from master Cannot find datafile /var/lib/hiera/ I don't understand why puppet is looking in /var/lib/hiera/. before setting up environments hiera was working and looking at /etc/puppethiera.yaml but default What version of Puppet? hiera.yaml :datadir: '/etc/puppet/environments/%{::environment}/hieradata' If this is what you have/had in your yaml file, you've probably realized this is not a valid Windows path, which is necessary for the yaml files on the Windows clients. This may not be correct - Hiera evaluates wherever the catalog is compiled I believe. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/220c601e-b537-4d9b-b0d9-3c94bb6d68e7%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/220c601e-b537-4d9b-b0d9-3c94bb6d68e7%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Early Adopter discount https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyAdopter * *—**save $349!* -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Early Adopter discount https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyAdopter * *—**save $349!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK5BxfTKrxOzCx4X7juvQd7tFFWuQN3tH%2BtD8VqD4%3DP6aQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] hiera and puppet environments ( directory)
On Fri, Jun 19, 2015 at 3:43 AM, Helen Paterson helen.pater...@gmail.com wrote: Hi, I'm trying to set-up puppet environment so that our ymal files can usernames and passwords for Production and test ( dq), modules will be the same. I have run through the documentation but am getting the following error: client error Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find data item classes in any Hiera data file and no default supplied at /e tc/puppet/environments/dq/manifests/windows-servers.pp:54 on node hp-test2008r2. debug from master Cannot find datafile /var/lib/hiera/ I don't understand why puppet is looking in /var/lib/hiera/. before setting up environments hiera was working and looking at /etc/puppethiera.yaml but default hiera.yaml :datadir: '/etc/puppet/environments/%{::environment}/hieradata' If this is what you have/had in your yaml file, you've probably realized this is not a valid Windows path, which is necessary for the yaml files on the Windows clients. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/220c601e-b537-4d9b-b0d9-3c94bb6d68e7%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/220c601e-b537-4d9b-b0d9-3c94bb6d68e7%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Early Adopter discount https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyAdopter * *—**save $349!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK7Xn2nC1i8q7SCvX6ww%2BB%3DeTzgdWKtnCU8dd%3DnJJ9EwZA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Re: Need help with python msi install on windows
On Mon, Jul 6, 2015 at 12:42 AM, Gene Fontanilla ginofontani...@gmail.com wrote: On Thursday, May 23, 2013 at 5:10:48 AM UTC+8, Kevin D wrote: Matt, I tried your class in my test environment. Here are my findings: Using Microsoft's Process Monitor http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx, we capture Puppet's call to MSIEXE, the command line value reads: msiexec.exe /qn /no restart /i example.com\\temp\\python-2.7.3.amd64.msi INSTALLDIR=C:\python27 ALLUSERS=1 It makes sense that you are getting an error because msiexec cannot find example.com\\temp\\python-2.7.3.amd64.msi. In order to successfully install, change the source line single quotes (') to double quotes(). On next Puupet run, Process Monitor command line value reads: msiexec.exe /qn /no restart /i \\example.com\temp\python-2.7.3.amd64.msi INSTALLDIR=C:\python27 ALLUSERS=1 *Another note:*Using Microsoft's orca.exe http://msdn.microsoft.com/en-us/library/windows/desktop/aa370557%28v=vs.85%29.aspx, the python-2.7.3.amd64.msi doesn't contain properties for INSTALLDIR or ALLUSERS. These aren't msiexec default properties either. As a result, these parameters are being ignored by msiexec. You wouldn't notice this because the values you happen provided for these errant keys are the defaults. If you comment the install_options line, it will still install in C:\Python27 for all users. If you wanted to specify a custom install directory, you would need to use TARGETDIR. If you wanted to restrict user access, you would need to use WHICHUSERS. WHICHUSERS accepts ALL or JUSTME To install for the current user in specified directory C:\python273 install_options = [ { 'TARGETDIR' = 'C:\python273' }, { 'WHICHUSERS' = 'JUSTME' } ], Here is your stanza fixed (with the install_options line optional [since you are using the defaults]): class python::install { package { 'python': ensure = installed, provider= 'msi', source = example.com \\software\\python\\python-2.7.3.amd64.msi, #install_options = [ { 'TARGETDIR' = 'C:\python27' }, { 'WHICHUSER = 'ALL' } ], } } I hope this helps. -Kev Hi I've been trying to execute what you have checked done here but i still get the error of does not know how to install, here is my code: package { python-2.7.3.amd64: ensure = 'installed', source = ${$installexec}/python-2.7.3.amd64, Looks like you almost have it. You need the full path to the installer file. Should end with the extension .msi. Your package title (e.g. python-2.7.3.amd64) also needs to exactly match what programs and features will list, which is likely 'Python'. install_options = [{'TARGETDIR' = 'c:/python27'} , {'WHICHUSERS' = 'ALL'} ] } can you help me? -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/c999ebc1-ef6b-46f9-aa4b-d01b140be0c8%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/c999ebc1-ef6b-46f9-aa4b-d01b140be0c8%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Early Adopter discount https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyAdopter * *—**save $349!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK6__iT4VB-8z-WKGWZ8ay3cHUWUZXzdHz4eRHnbhwUCbg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Re: Need help with python msi install on windows
On Mon, Jul 6, 2015 at 9:48 PM, Gene Fontanilla ginofontani...@gmail.com wrote: Looks like you almost have it. You need the full path to the installer file. Should end with the extension .msi. Your package title (e.g. python-2.7.3.amd64) also needs to exactly match what programs and features will list, which is likely 'Python'. Hi bob, i added .msi file extension and package { python-2.7.5.amd64.msi: ensure = 'installed', source = 'c:/PreRecap/python-2.7.5.amd64.msi', install_options = [{'TARGETDIR' = 'c:/python27'} , {'WHICHUSERS' = 'ALL'} ] } now i get the error: Failed to install, FATAL error during installation. To verify, the file you have located at c:/PreRecap/python-2.7.5.amd64.msi is actually a downloaded MSI file correct? I don't know what i'm doing wrong. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/a7212f05-22ec-4144-a0e0-67d6d3908e28%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/a7212f05-22ec-4144-a0e0-67d6d3908e28%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Early Adopter discount https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyAdopter * *—**save $349!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK7WE5nG-S7Z9%3DVxH0-fdKj2LOUXNBxT5Md5Lo71srSiNg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Re: Update Windows Tomcat using Puppet
On Fri, Jun 26, 2015 at 1:57 AM, Mike A. mike.bren...@gmail.com wrote: If there's no way I can use Puppet to install/update Tomcat directly, should I use Chocolatey instead? You can use Puppet to upgrade Tomcat directly. You've probably already come across puppetlabs-tomcat[1] and realized it isn't quite set up for Windows. You've probably also noticed that none of the tomcat modules on the forge advertise working with Windows[2]. It seems one could look at the steps required to update tomcat and create a module that will do so, or contribute back to puppetlabs-tomcat the Windows requirements. [1] https://forge.puppetlabs.com/puppetlabs/tomcat [2] https://forge.puppetlabs.com/tags/tomcat?utf-8=%E2%9C%93os=windows How reliable is Chocolatey in a production server? Depending on your methodology, reliable. Provided you: - Create your own packages that - Vendor the installers somewhere in your network and - You host your own internal chocolatey repository[3] The most important thing in here is production usage != community feed ( https://chocolatey.org). You can start with a copy of the package, then adjust the urls to your internal ones - see https://chocolatey.org/packages/Tomcat#files and take a look at the scripts. Download the zip files to a CIFS share or embed them in the package itself. Then adjust the links in the package itself. The package itself has a download link on the left, you can download the nupkg and rename to .zip and treat it as a regular zipped file. Then when you are ready, just use choco pack to repack the files into a nupkg and push it up to your internal repository. [3] https://github.com/chocolatey/choco/wiki/How-To-Host-Feed Anyone have any experience? On Thursday, June 25, 2015 at 8:47:26 PM UTC+8, Mike A. wrote: Hi, I'm new in using Puppet but I was able to install the server and several clients Almost all of our servers are running Windows 2008 with Tomcat 7 installed. I would like to know if it's possible to update the installed tomcat to version 8 using Puppet. If someone can point me to a tutorial on how to do it, I would greatly appreciate it. Thanks! -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/6dce982f-9b18-4886-9bbb-52689ffbdbee%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/6dce982f-9b18-4886-9bbb-52689ffbdbee%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Early Adopter discount https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyAdopter * *—**save $349!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK6DdsS-bbOccn4huB71i0ywWzMAnGQ%3DxTUExgv09WAtjA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] custom fact with registry value
On Wed, Jun 10, 2015 at 12:17 PM, kaustubh chaudhari kaustu...@gmail.com wrote: Hi All, I want to read registry value on windows system and present it as a fact. i tried it in many ways but no luck. I have this powershell script in facts.d directory == $path = 'HKLM:\Software\SunGard\BigFix' $wave = Get-ItemProperty $path | Select-Object -ExpandProperty bigfix Write-Host zzzPatching_Wave = $wave == every time i run this errors out. it directly displays $wave as key and Get-ItemProperty... as value in dashboard. Not the actual output as value. However if i run this on system through powershell it gives the correct output. Tried another way. Created a custom fact. == Facter.add(:zpatchwave) do confine :kernelversion = 6.1.7601 setcode do powershell = 'C:\Windows\syswow64\WindowsPowerShell\v1.0\powershell.exe' command = '(Get-ItemProperty -Path HKLM:Software\SunGard\BigFix -name bigfix).bigfix' Facter::Util::Resolution.exec(%Q{#{powershell} -command #{command}}) end end == You might try it another way, using ruby code. Facter.add(:myfact) do confine :kernel = :windows setcode do require 'win32/registry' value = nil hive = Win32::Registry::HKEY_CLASSES_ROOT hive.open('SOFTWARE\Somewhere\SomeValue', Win32::Registry::KEY_READ | 0x100) do |reg| value = reg['SomeValue'] end value end end but this is not executed successfully, it displays as path not found for HKLM in the dashboard. Any help is appreciated. Struggling on this. -Cheerzzz Kaustubh -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/bf96b0d5-82df-4a45-b1df-dc5b8a5fe717%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/bf96b0d5-82df-4a45-b1df-dc5b8a5fe717%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Early Adopter discount https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyAdopter * *—**save $349!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK54v2g-Gopp%3DVpyveVM%3DUxXsD8pZuqxRwcCE0bHGTo40w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] custom fact with registry value
On Wed, Jun 10, 2015 at 4:32 PM, Rob Reynolds r...@puppetlabs.com wrote: On Wed, Jun 10, 2015 at 12:17 PM, kaustubh chaudhari kaustu...@gmail.com wrote: Hi All, I want to read registry value on windows system and present it as a fact. i tried it in many ways but no luck. I have this powershell script in facts.d directory == $path = 'HKLM:\Software\SunGard\BigFix' $wave = Get-ItemProperty $path | Select-Object -ExpandProperty bigfix Write-Host zzzPatching_Wave = $wave == every time i run this errors out. it directly displays $wave as key and Get-ItemProperty... as value in dashboard. Not the actual output as value. However if i run this on system through powershell it gives the correct output. FWIW, I think you are running into registry redirection (built in to Windows). As in you are running Puppet from a 32-bit process on a 64-bit operating system, so it doesn't see your 64-bit registry value. I wrote a blog post[1] awhile back talking about some common things you might run into with Windows. You can also read more about registry redirection and our 64-bit versions of Puppet on the Windows overview page[2]. [1] https://puppetlabs.com/blog/how-avoid-common-windows-gotchas-puppet [2] http://docs.puppetlabs.com/windows/#file-system-redirection-windows-server-2003-or-older-versions-of-puppet Tried another way. Created a custom fact. == Facter.add(:zpatchwave) do confine :kernelversion = 6.1.7601 setcode do powershell = 'C:\Windows\syswow64\WindowsPowerShell\v1.0\powershell.exe' command = '(Get-ItemProperty -Path HKLM:Software\SunGard\BigFix -name bigfix).bigfix' Facter::Util::Resolution.exec(%Q{#{powershell} -command #{command}}) end end == You might try it another way, using ruby code. Facter.add(:myfact) do confine :kernel = :windows setcode do require 'win32/registry' value = nil hive = Win32::Registry::HKEY_CLASSES_ROOT hive.open('SOFTWARE\Somewhere\SomeValue', Win32::Registry::KEY_READ | 0x100) do |reg| value = reg['SomeValue'] end value end end but this is not executed successfully, it displays as path not found for HKLM in the dashboard. Any help is appreciated. Struggling on this. -Cheerzzz Kaustubh -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/bf96b0d5-82df-4a45-b1df-dc5b8a5fe717%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/bf96b0d5-82df-4a45-b1df-dc5b8a5fe717%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Early Adopter discount https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyAdopter * *—**save $349!* -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Early Adopter discount https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyAdopter * *—**save $349!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK5XzZaoGRz-LTAQQzK%3D_UmBgswOiNcUYjF9bRFXVkkMpQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Creating Windows MSI for puppet agent
On Tue, Jun 9, 2015 at 1:15 AM, Puppeteer kdeepak...@gmail.com wrote: Hi Rob, The application event log does not have any information with respect to Puppet. There is no log named Puppet. I was specifically talking about Application event log and source being Puppet. [image: Inline image 1] Also when I run the agent from the command I get the following message: cannot load such file -- facter. This actually tells me exactly what is wrong, that facter section in the YAML is only going to get you the source of Facter and you need to compile it, because you still need Facter to run Puppet. You should follow the instructions that Melissa gave you to move things along. Alternatively if you look at some of the older yamls, you may be able to determine how to use the older ruby facter instead. For instance, take a look at https://github.com/puppetlabs/puppet_for_the_win/blob/master/foss-3.7-x64.yaml I have attached the screenshot. Regards, Deepak. On Tuesday, 9 June 2015 00:54:10 UTC+5:30, Rob Reynolds wrote: On Mon, Jun 8, 2015 at 2:00 AM, Puppeteer kdeep...@gmail.com wrote: Hi Melissa, Thanks for you response. That is something that I will look into (pretty new to all these things). I got the puppet_for_the_win working by modifying foss-stable.yaml by including the following lines from foss-4.0-x86.yaml: mcollective: :ref: 2.8.1 :repo: git://github.com/puppetlabs/marionette-collective.git After including the above lines I was able to build the MSI and install it. However the Puppet service does not start. I have attached the message I get on starting the service. I did not find any logs in the c:\ProgramData\puppet folder or in the event viewer. Any idea why the service is not starting? From the image, I would suggest attempting to run puppet by hand and see what you get. It's likely something is missing that Puppet expects to be there for the service. You can also look in the Application Event Log to see what Puppet may have failed with. Regards, Deepak. On Thursday, 4 June 2015 22:04:22 UTC+5:30, Melissa Stone wrote: On Thu, Jun 4, 2015 at 1:05 AM, Puppeteer kdeep...@gmail.com wrote: Hi, I want to create a custom MSI for the puppet agent. Can someone guide me on this. I tried using puppetlabs/puppet_for_the_win but was not successful. Hey! Unfortunately, we have yet to streamline this process for external use. You can still roll your own native facter build though. You'll want to use the script at https://github.com/puppetlabs/facter/blob/master/contrib/facter.ps1. You need to run the script on probably a windows 2012 box (64 bit), and I would strongly suggest reviewing the script to ensure that we don't do anything that's going to mess you up. It's meant to be run on a disposable box. After that builds, we collect all the built bits and library dependencies into the zip archive that the automation in puppet_for_the_win looks for. We don't have that automation in a public space, but here's a summary of what goes into that archive. This assumes you're building 64 bit, so if you're building for a 32 bit machine, you'll have to modify it. # Move all necessary dll's into facter bindir cp /cygdrive/c/tools/mingw64/bin/libgcc_s_seh-1.dll /cygdrive/c/tools/mingw64/bin/libstdc++-6.dll /cygdrive/c/tools/mingw64/bin/libwinpthread-1.dll /home/Administrator/facter/release/bin/ # Format everything to prepare to archive it mkdir -p /home/Administrator/archive/lib ; cp -r /home/Administrator/facter/release/bin /home/Administrator/facter/lib/inc /home/Administrator/archive/ ; cp /home/Administrator/facter/release/lib/facter.rb /home/Administrator/archive/lib/ # Zip up the built archives 7za.exe a -r -tzip facter.zip 'C:\\cygwin64\\home\\Administrator\\archive\\*'\ Once you have that archive, you can modify the config file you're using to point to where that archive can be found. That *should* let the automation in puppet_for_the_win work. Let me know how that goes! I used the command: rake windows:build AGENT_VERSION_STRING=1.0.0 CONFIG=foss-4.1-x86.yaml I get the following error: curl -O http://builds.puppetlabs.lan/facter/9586d5cd1ee6c18e88506a8f4a8b12f2ee51 d154/artifacts/windows//facter-2.4.3-1074-g9586d5c-x86.zip curl: (6) Couldn't resolve host 'builds.puppetlabs.lan' rake aborted! Command failed with status (6): [curl -O http://builds.puppetlabs.lan/facte...] Tasks: TOP = windows:msi = windows:wixobj = windows:wxs = windows:stage = w indows:checkout = windows:clone (See full trace by running task with --trace) Thanks. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/d759891a-e50b-4553-a36f-3416f39a88c7
Re: [Puppet Users] Creating Windows MSI for puppet agent
-9918c54b4f85%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Early Adopter discount https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyAdopter * *—**save $349!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK7Hcg7%3DGJiWeA4VFY3qQubMaoJ_LqOiKhd7zYv%2BtGt%3DCg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Setting puppet.client_cert_path and puppet.client_private_key_path on Windows
On Tue, Jun 2, 2015 at 12:49 PM, Pablo Gosse pablogo...@gmail.com wrote: I'm trying to bring up a Vagrant box on a Windows host, and provision it using the puppet agent provisioner. Here's the pertinent section of my Vagrantfile: config.vm.provision puppet_server do |puppet| puppet.puppet_server = pg-uni-puppet-01 puppet.client_cert_path = F:\vagrant-machines\Vagrant-Puppet-Agent\ssl-config\ca.pem puppet.client_private_key_path = F:\vagrant-machines\Vagrant-Puppet-Agent\ssl-config\drupal-dev-gossep-local.pem I'm not completely sure but I think you maybe should be using a relative path from the host's perspective. If that is not correct, then you should do what you mentioned and add it as a shared folder for the guest (vagrant box), and then point there. puppet.puppet_node = config.vm.hostname end I'm getting the following error: puppet server provisioner: * The specified client cert path could not be found * The specified client private key path could not be found Do I need to mount the location within Vagrant in order to access the folder where the client cert and private key are stored? Pablo -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/74e5b9e8-fb32-41a8-b53b-4dac267bc000%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/74e5b9e8-fb32-41a8-b53b-4dac267bc000%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Early Adopter discount https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyAdopter * *—**save $349!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK5-O1KV_s8_jXxX%3DXs9Y7LMZ_5tW6r3cGsFzXnK9uvaBQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Puppet for VM on Windows 7 - confused!
On Wed, May 20, 2015 at 4:35 AM, Karen Ellrick osakaweb...@gmail.com wrote: Hmm, perhaps more of the lights are coming on for me, after conferring briefly with the creator of PuPHPet. Here is a question I have not asked before, because I thought I knew: Which machine is the Puppet agent to be installed and run on? 1. The server that is being provisioned? (in my case, a VM with CentOS 6.4) 2. The computer where Vagrant is running? (in my case, a Windows 7 laptop, which will never be set up as a server) I was assuming #2, but now I'm starting to think it's #1. If that's so, then the msi has nothing to do with what I'm trying to accomplish. That would explain why PuPHPet didn't need it. Is my thinking now closer to the truth? I'm assuming that #2 is the host that runs the Vagrant process and #1 is the guest machine that Vagrant is provisioning? Then you are correct that it is #1 that needs Puppet and not #2. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/4710237e-0f87-47ff-932a-b1af3e300b74%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/4710237e-0f87-47ff-932a-b1af3e300b74%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Early Adopter discount https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyAdopter * *--**save $349!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK7pNm_as9KdtSHFb8rpenGM9N93bD9KEv10JadFwRaDkg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Puppet for VM on Windows 7 - confused!
Hi Karen, On Sat, May 9, 2015 at 12:53 AM, Karen Ellrick osakaweb...@gmail.com wrote: Having already used Puppet a bit by way of a pre-packaged ZIP file created by the PuPHPet online tool, I decided to try building a simpler VM without the tool. I have VirtualBox and Vagrant already installed and happy. What do I do next? I'm getting too many seemingly conflicting instructions. This looked like a nice simple starting point: https://github.com/miccheng/vagrant-lamp-centos63 It had three git commands, after which I should have been able to run vagrant and have a basic LAMP box. But the repo said it was deprecated and replaced by this: https://github.com/sgphpug/Vagrant-LAMP-CentOS64 Okay, fine. But the newer one has completely different instructions for installation - gem install of puppet and librarian-puppet, some dependency stuff, etc. I was pleasantly surprised to discover that I do have Ruby installed (I had no idea - this is an ordinary Windows PC), so I opened a command prompt, cd'ed to a logical spot (in case that would matter), and tried the first command: gem install puppet. After about a half hour, with some complaints about not being able to convert some things to UTF-8, it was still trying to do who-knows-what. I looked in several likely spots for some hint that files related to Puppet were being saved somewhere, but couldn't find anything. I have no idea where it was installing anything. While it still ran in the background, I went back to Google and looked for more info about installing Puppet on Windows. I found this page: https://docs.puppetlabs.com/guides/install_puppet/install_windows.html#automated-installation That describes a completely different sort of thing from Ruby gems, a more typical Windows-ish installation. But the Pre-Install Tasks https://docs.puppetlabs.com/guides/install_puppet/pre_install.html page talked of a puppet master that must be on a *nix machine somewhere. It said: *Your puppet master(s) should be robust dedicated servers that can handle the amount of agents they'll need to serve.* Hmm, I don't have one of those, but perhaps it will be all right. After all, I had no trouble with the PuPHPet boxes. I believe you are referring to this[1]. This is merely meant to state that Windows only has an agent available in a Master/Agent scenario. [1] http://docs.puppetlabs.com/guides/install_puppet/pre_install.html#choose-your-puppet-master-servers So I halted the gem-based task (which still hadn't finished!), downloaded the 64-bit msi file, and ran it. It said: *This will install Puppet (64-bit) 3.7.5 and configure the system to fetch configurations every half hour. This version of Puppet (64-bit) will work with puppet masters running Puppet 3.0 or higher.* Hmph! Not only do I not have a puppet master or a place to put one, but I don't want something running constantly on my PC that tries to go to some server every half hour for who knows what. The pre-install page also mentioned Standalone Puppet https://docs.puppetlabs.com/guides/install_puppet/pre_install.html#standalone-puppet that doesn't use a master, but it didn't give any hints about how to do that. The MSI is the primary means of installing Puppet on Windows. If you want a standalone Puppet, you just want to pass PUPPET_AGENT_STARTUP_MODE=Disabled to the MSI installer - see Automated Installation[2] and MSI Properties[3]. I see that you found the automated installation section already but perhaps we should draw out more that you can run the standalone puppet by setting that property to disabled in the actual installer. [2] http://docs.puppetlabs.com/guides/install_puppet/install_windows.html#automated-installation [3] http://docs.puppetlabs.com/guides/install_puppet/install_windows.html#msi-properties The sweet little zip file from PuPHPet did not require any Ruby gems, msi installations, or master servers. Apparently that's yet a third way to run Puppet (perhaps similar to the deprecated Centod63 repo that didn't require anything beyond VirtualBox and vagrant). FWIW, the MSI does come with a vendored ruby gems, so you can get past at least Ruby gems and master servers. Unfortunately I haven't gotten you past the need for the MSI though. :) So, why am I so confused, and could someone clear my head? -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/7caa94e7-3f57-48e6-aa27-86c700484c9d%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/7caa94e7-3f57-48e6-aa27-86c700484c9d%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015
Re: [Puppet Users] Puppet for VM on Windows 7 - confused!
On Mon, May 11, 2015 at 3:22 PM, Rob Reynolds r...@puppetlabs.com wrote: Hi Karen, On Sat, May 9, 2015 at 12:53 AM, Karen Ellrick osakaweb...@gmail.com wrote: Having already used Puppet a bit by way of a pre-packaged ZIP file created by the PuPHPet online tool, I decided to try building a simpler VM without the tool. I have VirtualBox and Vagrant already installed and happy. What do I do next? I'm getting too many seemingly conflicting instructions. This looked like a nice simple starting point: https://github.com/miccheng/vagrant-lamp-centos63 It had three git commands, after which I should have been able to run vagrant and have a basic LAMP box. But the repo said it was deprecated and replaced by this: https://github.com/sgphpug/Vagrant-LAMP-CentOS64 Okay, fine. But the newer one has completely different instructions for installation - gem install of puppet and librarian-puppet, some dependency stuff, etc. I was pleasantly surprised to discover that I do have Ruby installed (I had no idea - this is an ordinary Windows PC), so I opened a command prompt, cd'ed to a logical spot (in case that would matter), and tried the first command: gem install puppet. After about a half hour, with some complaints about not being able to convert some things to UTF-8, it was still trying to do who-knows-what. I looked in several likely spots for some hint that files related to Puppet were being saved somewhere, but couldn't find anything. I have no idea where it was installing anything. While it still ran in the background, I went back to Google and looked for more info about installing Puppet on Windows. I found this page: https://docs.puppetlabs.com/guides/install_puppet/install_windows.html#automated-installation That describes a completely different sort of thing from Ruby gems, a more typical Windows-ish installation. But the Pre-Install Tasks https://docs.puppetlabs.com/guides/install_puppet/pre_install.html page talked of a puppet master that must be on a *nix machine somewhere. It said: *Your puppet master(s) should be robust dedicated servers that can handle the amount of agents they'll need to serve.* Hmm, I don't have one of those, but perhaps it will be all right. After all, I had no trouble with the PuPHPet boxes. I believe you are referring to this[1]. This is merely meant to state that Windows only has an agent available in a Master/Agent scenario. [1] http://docs.puppetlabs.com/guides/install_puppet/pre_install.html#choose-your-puppet-master-servers So I halted the gem-based task (which still hadn't finished!), downloaded the 64-bit msi file, and ran it. It said: *This will install Puppet (64-bit) 3.7.5 and configure the system to fetch configurations every half hour. This version of Puppet (64-bit) will work with puppet masters running Puppet 3.0 or higher.* Hmph! Not only do I not have a puppet master or a place to put one, but I don't want something running constantly on my PC that tries to go to some server every half hour for who knows what. The pre-install page also mentioned Standalone Puppet https://docs.puppetlabs.com/guides/install_puppet/pre_install.html#standalone-puppet that doesn't use a master, but it didn't give any hints about how to do that. The MSI is the primary means of installing Puppet on Windows. If you want a standalone Puppet, you just want to pass PUPPET_AGENT_STARTUP_MODE=Disabled to the MSI installer - see Automated Installation[2] and MSI Properties[3]. I see that you found the automated installation section already but perhaps we should draw out more that you can run the standalone puppet by setting that property to disabled in the actual installer. I followed up with PUP-4554[1] to address possible confusion for the MSI installer. [1] https://tickets.puppetlabs.com/browse/PUP-4554 [2] http://docs.puppetlabs.com/guides/install_puppet/install_windows.html#automated-installation [3] http://docs.puppetlabs.com/guides/install_puppet/install_windows.html#msi-properties The sweet little zip file from PuPHPet did not require any Ruby gems, msi installations, or master servers. Apparently that's yet a third way to run Puppet (perhaps similar to the deprecated Centod63 repo that didn't require anything beyond VirtualBox and vagrant). FWIW, the MSI does come with a vendored ruby gems, so you can get past at least Ruby gems and master servers. Unfortunately I haven't gotten you past the need for the MSI though. :) So, why am I so confused, and could someone clear my head? -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/7caa94e7-3f57-48e6-aa27-86c700484c9d%40googlegroups.com https://groups.google.com/d/msgid/puppet-users
Re: [Puppet Users] run code in a new puppet agent window (windows server)
On Wed, Feb 18, 2015 at 10:27 AM, Helen Paterson helen.pater...@gmail.com wrote: Hi, I set windows environment variables using puppet, but you must close the puppet agent window and open a new one to be able to use these variables. Can i do this programaticaly ? Add the same value to the path[1][2] of the exec command (if that is what you are using). Note when specifying paths for Windows, use semi-colon (;) as a separator instead of colon. Environment updates not immediately updating shells is part of how Windows works, although it could probably could be resolved in a bit more elegant way than it is likely being resolved now. [1] http://docs.puppetlabs.com/references/latest/type.html#exec-attribute-path [2] http://docs.puppetlabs.com/puppet/latest/reference/resources_exec_windows.html (i need git use git via puppet but you must set windows env git paths first ) -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/4e95895d-2eb2-4a9e-bda2-b931d4f7c868%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/4e95895d-2eb2-4a9e-bda2-b931d4f7c868%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Early Adopter discount https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyAdopter * *--**save $349!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK53VUaFDctgVuAOx7wbbb-RudDhTA7ZhxrNuVwUjhMhyA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] My puppet code is not idempotent (Windows package provider)
On Thu, Feb 19, 2015 at 4:32 AM, cko dert...@gmail.com wrote: I installed the package manually and used puppet resource package to determine the exact package name. But I just found out that Puppet *doesn't install the package* at all *unless* I run puppet manually via puppet agent -t. The report says otherwise. The Puppet service on the nodes runs as the Local System Account (Default) I do not want to run puppet agent -t manuall on every machine for this to work :| I wonder if this is due to some requirement of the USB installer to install interactively. When you are running puppet agent -t, you are doing it from an interactive session. When the service runs puppet agent, it is not interactive. You can allow the service to interact with the desktop, but I'm not sure if this would cause other issues. If you want to give it a shot though, it may resolve the issue of installers that require interactive sessions. Be sure you restart the service once you make this change. I would recommend testing this change against something non-production to be sure there are no other consequences of this adjustment. [image: Inline image 1] On Thursday, February 19, 2015 at 11:15:34 AM UTC+1, Dirk Heinrichs wrote: Am 19.02.2015 um 10:29 schrieb cko: But on every puppet run, the package resource gets applied. Example tagmail output: *Thu Feb 19 09:48:28 +0100 2015 /Stage[main]/[ .. module ]/Package[signotec WinUSB]/ensure (notice): created Thu Feb 19 10:16:59 +0100 2015 /Stage[main]/[ .. module ]/Package[signotec WinUSB]/ensure (notice): created * *.* Any ideas? Is 'signotec WinUSB' exactly the name of the package as reported by Windows in Control Panel\All Control Panel Items\Programs and Features? dito for the version? HTH... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach *Tel*: +49 2226 159 (Ansage) 1149 *Email*: d...@recommind.com *Skype*: dirk.heinrichs.recommind www.recommind.com -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/fe2a6f7a-9010-4e47-bfb1-6c05896d6749%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/fe2a6f7a-9010-4e47-bfb1-6c05896d6749%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Early Adopter discount https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyAdopter * *--**save $349!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK4sufrM%2B0tsAT60rPEK_37Zz5sbXMq59%2BSXuhwgMhpKOQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Re: Using puppetlabs_spec_helper on Windows 7
On Fri, Feb 20, 2015 at 3:31 PM, Breeze breeze...@gmail.com wrote: Is it a lost cause ? Or someone succeeded to test puppet modules on Windows ? BUMP I wouldn't say lost cause - https://github.com/puppetlabs/puppetlabs_spec_helper/pull/87 and https://github.com/puppetlabs/puppetlabs_spec_helper/pull/84 - those were released in 0.9.0 (somewhere late February) I believe. On Monday, October 28, 2013 at 5:44:30 AM UTC-5, Matthieu Nantern wrote: I'm trying to make puppetlabs_spec_helper runs on Windows 7 to test my Puppet modules. Is this supported ? Because I encountered some problems: 1. symlinks were not created on Windows 7 (even if the functionnality are availabe). To manage that I added to rake_tasks.rb an ugly function: def make_link(source,target) ruby_platform = RbConfig::CONFIG['host_os'] if RUBY_PLATFORM =~ /mswin|mingw|cygwin/ then #Windows Stuff source_win=source.tr(/,\\) target_win=target.tr(/,\\) `call mklink /D #{target_win} #{source_win}` elsif RUBY_PLATFORM =~ /linux/ then FileUtils::ln_s(source, target) end end 2. undefined method `fetch' for nil:NilClass: Failure/Error: Unable to find matching line from backtrace NoMethodError: undefined method `fetch' for nil:NilClass # C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/test/test_helper.rb:107:in `block in after_each_test' # C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/test/test_helper.rb:106:in `each' # C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/test/test_helper.rb:106:in `after_each_test' 3. I use the concat module. And when running rake test, I got: Failure/Error: should contain_package('nfs-utils') Puppet::Error: $concat_basedir not defined. Try running again with pluginsync=true on the [master] section of your node's '/etc/puppet/puppet.conf'. Is it a lost cause ? Or someone succeeded to test puppet modules on Windows ? Thank you for your help ! -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/81f04c7d-bc59-48f3-b784-abc16809a2d6%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/81f04c7d-bc59-48f3-b784-abc16809a2d6%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Early Adopter discount https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyAdopter * *--**save $349!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK7u2fgPVeB_FE6zoJBgmyjeuNUd0WW4TAV8R7fVSy54%2Bw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Error in provisioning with puppet
On Wed, Mar 11, 2015 at 2:18 AM, Ash26 jasfashionsonl...@gmail.com wrote: I am trying to build a Win 2008 R1 SP2 baked AMI using packer and puppet. My builder works fine and creates the AMI with puppet installed. Now in my provisioner I have a very simple puppet script and it is executing when I do a puppet apply on the instance. But inside packer it is failing with the below error. The json file was validated successfully by packer. amazon-windows-ebs: Provisioning with Puppet... amazon-windows-ebs: Creating Puppet staging directory... amazon-windows-ebs: The syntax of the command is incorrect. This is my provisioner provisioners:[{ type: puppet-masterless, manifest_file: C:\\Users\\xyz\\Downloads\\packer_0.7.5_windows_386\\site.pp }] Does the AMI have access to the file? Note I don't believe you can build a local AMI for Windows with Packer. I don't have a lot of experience building out AMI's but I can tell you that there was some significant work recently put into Packer, AWS and Windows. See http://jen20.com/2015/04/02/windows-amis-without-the-tears.html Please provide pointers. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/0732c5b0-1f9a-4827-8981-fb744f41126d%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/0732c5b0-1f9a-4827-8981-fb744f41126d%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Early Adopter discount https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyAdopter * *--**save $349!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK6JjUwJimCUQMCrKeT2a7A4bqTuaRRUujbFM7NHw1D%2B1A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] My puppet code is not idempotent (Windows package provider)
On Thu, Feb 19, 2015 at 3:29 AM, cko dert...@gmail.com wrote: Hi everyone, I'm using the following manifest to deploy a driver package (and its certificate) to about 150 Windows Server 2008 R2 nodes. https://gist.github.com/anonymous/1cbaa90e1d0497ebaeb3 On second look, I noticed you were using a network share. It's possible Puppet is silently failing on being unable to access the installer file. The puppet agent service by default runs as LocalSystem, which will not have access to network shares. You can either find a user that is in the local Administrators group that have network access or copy the resource locally through a different means before trying to use it with package. The file and exec resources are applied successfully and only once. But on every puppet run, the package resource gets applied. Example tagmail output: *Thu Feb 19 09:48:28 +0100 2015 /Stage[main]/[ .. module ]/Package[signotec WinUSB]/ensure (notice): createdThu Feb 19 10:16:59 +0100 2015 /Stage[main]/[ .. module ]/Package[signotec WinUSB]/ensure (notice): created* *.* Any ideas? -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/73b28b55-3f57-4ab1-b92a-1078c5175f76%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/73b28b55-3f57-4ab1-b92a-1078c5175f76%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Early Adopter discount https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyAdopter * *--**save $349!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK6mEj%2B9enaVQ40LYjZYGeuoG3Y41WM94M2X0hgmrU-3ww%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Unreported Windows nodes (Puppet 3.7.3, Exchange 2010)
On Wed, Feb 11, 2015 at 11:31 PM, cko dert...@gmail.com wrote: I just updated to 3.7.4 This is the output when I manually run Puppet: http://i.imgur.com/pdrklFm.png (Still, only happening on exchange 2010 nodes) The Agent basically stops working after loading all facts, without removing the .lock file. Let me know if you need more information on this. Apologies on not getting back sooner. This definitely seems like something is wrong. However it would be hard to understand specifically what it is on your system that is causing the weird behavior without some low level debugging. There are a few possibilities into why the pidlock file is not removed, including possibly something else taking a lock on the file and Puppet is not able to delete it on exit. There are tools out there that can help you see what, if anything has a lock on a specific file/directory (I use LockHunter). Timing it right though may be necessary, so a combination of that and procmon. Other debugging tools I would recommend: - Wireshark - SysInternals' Process Explorer (aka procexp) - SysInternal's Process Monitor (aka procmon) One suggestion I would have before going to the low level debugging would be to completely remove Puppet from that machine (including manually removing the c:\programdata\puppetlabs directory), Reboot, and then try installing it again fresh. Note that you will need to remove the cert from the master as it will try to request a new cert.[1][2] I would back up the programdata\puppetlabs directory prior to removing it. [1] https://hurricanelabs.com/blog/managing-puppet-certificates/ [2] http://www.masterzen.fr/2010/11/14/puppet-ssl-explained/ On Thursday, February 5, 2015 at 11:27:43 PM UTC+1, Rob Reynolds wrote: On Tue, Feb 3, 2015 at 8:25 AM, cko der...@gmail.com wrote: Icacls: http://i.imgur.com/s1xQy65.png Can you run one against the last_run_report.yaml and the lock file (if still present)? I'm seeing a similar set of permissions for var/state but want to verify the permissions on the files (as they can be different). I will upgrade to Puppet 3.7.3 this week an see if that fixed the issue. On Monday, February 2, 2015 at 9:49:01 PM UTC+1, Rob Reynolds wrote: On Mon, Feb 2, 2015 at 5:05 AM, cko der...@gmail.com wrote: I just noticed that the affected agents do not update the files located in C:\ProgramData\PuppetLabs\puppet\var\state. Also interesting: The agent_catalog_run.lock file is not properly removed after a puppet run. See the timestamps on the files ( http://i.imgur.com/qE87OB5.png ) Can you give me an icacls on that folder? icacls C:\ProgramData\PuppetLabs\puppet\var\state. Also I wonder if you have a connection issue in sending the report to the master? From the gist I didn't see an issue jump out at me though. Also, 3.7.4 just came out. I don't know for sure if it will resolve the issues or not. On Monday, December 15, 2014 at 5:24:55 PM UTC+1, Rob Reynolds wrote: On Sun, Dec 14, 2014 at 9:17 AM, cko der...@gmail.com wrote: The Puppet Service is actually running. The eventlog shows records about successfully finished catalog runs. All files in the C:\ProgramData\PuppetLabs\puppet\var\state directory indicate that the puppet run finishes without problems. I suspect there is a problem with the submission of the report to the puppet master unless the puppet run is triggered manually. What user does the puppet agent service run under? That might be the reason they are marked out of sync in any dashboard application (puppetdb, puppetexplorer, foreman). On Sunday, December 14, 2014 4:48:59 AM UTC+1, Rob Reynolds wrote: On Tue, Dec 9, 2014 at 7:28 AM, cko der...@gmail.com wrote: Hi, I'm currently having an issue with the Windows Server 2008R2 nodes in our Exchange 2010 environment. Since I upgraded the four nodes to Puppet 3.7.3 , they do not check in to the Puppetmaster via the Windows Service every 30 minutes like all the other nodes do. Here is a gist of the output from puppet agent -t --debug that might help https://gist.github.com/anonymous/e972393ea742631ccaef Is there a problem in my environment or are there any known issues regarding this behavior? We are not aware of a known issue for this behavior. If you could check the eventlog and determine what issues it may be reporting? -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/4da95e8f-9c8f -4dca-a91d-dfae1ce1dd1d%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/4da95e8f-9c8f-4dca-a91d-dfae1ce1dd1d%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer
Re: [Puppet Users] team need some guidelinees ,like how to do software install and uninstal on windows using Active directory OU on windows
On Wed, Mar 25, 2015 at 7:37 AM, shyam sundar Keshari shyam...@gmail.com wrote: Hi Team , I am using puppet with latest verion 3.7 . Some new requirement come up like do software installation and un-installation on Windows operating system and hostname for this machine I need to get from Active directory OU list and then apply puppet policy accordingly . So if any1 has done such project then kindly share with your knowledge . I am not sure this question is specific enough to be of any assistance. Perhaps you might read over the more Windows specific documentation[1], try out some things and let us know where your specific gaps are with examples of what you have tried? Thanks! [1] http://docs.puppetlabs.com/windows/ Thanks in Advance Shyam Keshri -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/ae327142-3dbe-4bde-816d-aebfbadeb407%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/ae327142-3dbe-4bde-816d-aebfbadeb407%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Early Adopter discount https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyAdopter * *--**save $349!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK4ZTKTGvTvw9pxjDDffu4HK3gLchShTvq1hUcD%3Dgyag3A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Re: No connection could be made because the target machine actively refused it - Ubuntu VM on Win 8
On Mon, Dec 29, 2014 at 11:08 AM, kaustubh chaudhari kaustu...@gmail.com wrote: Is there a firewall wall in between ? make sure from client you are able to run # telnet puppetmaster.example.com 8140 (replace the fqdn with your puppet master name). Another thing to be sure of is that the hostname of the fqdn of the puppetmaster is reachable, sometimes this requires adding its name and IP address to the hosts file. HTH -Kaustubh On Sunday, December 28, 2014 3:36:42 PM UTC-5, havay...@gmail.com wrote: Hi everyone, I'm a newbie with puppet and i'm currently trying to run a puppet master server on an ubuntu virtual box and the puppet agent on windows 8 ( which is the host computer ). Using the cmd tool on windows i've executed the following to see if the agent manages to connect with the master: *puppet agent --test --debug* which eventually ended up with this error message: *No connection could be made because the target machine actively refused it* I've print-screened all the relevant conf files and the error i'm getting. In my understanding since i'm running a VM I should forward somehow the requests to the master running there, for some reason this keeps failing and I have no clue why. Any ideas why? Both agent and master are up and running Any help is appreciated, Thanks in advance for your time, Havaya G P.S hosts file on Win 8 hasn't been changed or modified, its the default one, I haven't added any entries there whatsoever. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/3314ceae-d5e4-4f9b-b60b-7dc2eca5f04f%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/3314ceae-d5e4-4f9b-b60b-7dc2eca5f04f%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Early Adopter discount https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyAdopter * *--**save $349!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK6R3%3DKBHMTM51j3hBcqGZ9TRX9UhBM09r5GDB53mJbciw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] Notice: Puppet Provider for Chocolatey - New Bits, New Location
To help resolve some recent confusion, I am sending out this notice that was also sent out to the chocolatey users list. The Puppet provider for Chocolatey is now at https://forge.puppetlabs.com/chocolatey/chocolatey - This provider supports both the old PowerShell client (0.9.8 and below) and the new compiled choco client (0.9.9+). - The work that was done fixed a range of issues - https://github.com/chocolatey/puppet-chocolatey/pull/49 (note that some of these may still be issues if you are on 0.9.8 and below). - We'll update the old rismoney/chocolatey to point to the new module soon and deprecate it fully. -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Early Adopter discount https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyAdopter * *--**save $349!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK7i0Dm0Bc6v9kaLkjPzyVEUrix6-3W_RAEEdo0W5Rb2Dg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Unreported Windows nodes (Puppet 3.7.3, Exchange 2010)
On Tue, Feb 3, 2015 at 8:25 AM, cko dert...@gmail.com wrote: Icacls: http://i.imgur.com/s1xQy65.png Can you run one against the last_run_report.yaml and the lock file (if still present)? I'm seeing a similar set of permissions for var/state but want to verify the permissions on the files (as they can be different). I will upgrade to Puppet 3.7.3 this week an see if that fixed the issue. On Monday, February 2, 2015 at 9:49:01 PM UTC+1, Rob Reynolds wrote: On Mon, Feb 2, 2015 at 5:05 AM, cko der...@gmail.com wrote: I just noticed that the affected agents do not update the files located in C:\ProgramData\PuppetLabs\puppet\var\state. Also interesting: The agent_catalog_run.lock file is not properly removed after a puppet run. See the timestamps on the files ( http://i.imgur.com/qE87OB5.png ) Can you give me an icacls on that folder? icacls C:\ProgramData\PuppetLabs\puppet\var\state. Also I wonder if you have a connection issue in sending the report to the master? From the gist I didn't see an issue jump out at me though. Also, 3.7.4 just came out. I don't know for sure if it will resolve the issues or not. On Monday, December 15, 2014 at 5:24:55 PM UTC+1, Rob Reynolds wrote: On Sun, Dec 14, 2014 at 9:17 AM, cko der...@gmail.com wrote: The Puppet Service is actually running. The eventlog shows records about successfully finished catalog runs. All files in the C:\ProgramData\PuppetLabs\puppet\var\state directory indicate that the puppet run finishes without problems. I suspect there is a problem with the submission of the report to the puppet master unless the puppet run is triggered manually. What user does the puppet agent service run under? That might be the reason they are marked out of sync in any dashboard application (puppetdb, puppetexplorer, foreman). On Sunday, December 14, 2014 4:48:59 AM UTC+1, Rob Reynolds wrote: On Tue, Dec 9, 2014 at 7:28 AM, cko der...@gmail.com wrote: Hi, I'm currently having an issue with the Windows Server 2008R2 nodes in our Exchange 2010 environment. Since I upgraded the four nodes to Puppet 3.7.3 , they do not check in to the Puppetmaster via the Windows Service every 30 minutes like all the other nodes do. Here is a gist of the output from puppet agent -t --debug that might help https://gist.github.com/anonymous/e972393ea742631ccaef Is there a problem in my environment or are there any known issues regarding this behavior? We are not aware of a known issue for this behavior. If you could check the eventlog and determine what issues it may be reporting? -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/4da95e8f-9c8f -4dca-a91d-dfae1ce1dd1d%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/4da95e8f-9c8f-4dca-a91d-dfae1ce1dd1d%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *Join us at **PuppetConf 2015, October 5-9 in Portland, OR - * http://2015.puppetconf.com/ *Register early to save 40%!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/ msgid/puppet-users/311eff85-ba40-42bf-a983-a363fe5a61d1%40goog legroups.com https://groups.google.com/d/msgid/puppet-users/311eff85-ba40-42bf-a983-a363fe5a61d1%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *Join us at **PuppetConf 2015, October 5-9 in Portland, OR - * http://2015.puppetconf.com/ *Register early to save 40%!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/ msgid/puppet-users/74fa3e65-2974-46b5-95c4-a30bf6374a60% 40googlegroups.com https://groups.google.com/d/msgid/puppet-users/74fa3e65-2974-46b5-95c4-a30bf6374a60%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *Join us at **PuppetConf 2015, October 5-9 in Portland, OR - * http://2015.puppetconf.com/ *Register early to save 40%!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop
Re: [Puppet Users] Unreported Windows nodes (Puppet 3.7.3, Exchange 2010)
On Mon, Feb 2, 2015 at 5:05 AM, cko dert...@gmail.com wrote: I just noticed that the affected agents do not update the files located in C:\ProgramData\PuppetLabs\puppet\var\state. Also interesting: The agent_catalog_run.lock file is not properly removed after a puppet run. See the timestamps on the files ( http://i.imgur.com/qE87OB5.png ) Can you give me an icacls on that folder? icacls C:\ProgramData\PuppetLabs\puppet\var\state. Also I wonder if you have a connection issue in sending the report to the master? From the gist I didn't see an issue jump out at me though. Also, 3.7.4 just came out. I don't know for sure if it will resolve the issues or not. On Monday, December 15, 2014 at 5:24:55 PM UTC+1, Rob Reynolds wrote: On Sun, Dec 14, 2014 at 9:17 AM, cko der...@gmail.com wrote: The Puppet Service is actually running. The eventlog shows records about successfully finished catalog runs. All files in the C:\ProgramData\PuppetLabs\puppet\var\state directory indicate that the puppet run finishes without problems. I suspect there is a problem with the submission of the report to the puppet master unless the puppet run is triggered manually. What user does the puppet agent service run under? That might be the reason they are marked out of sync in any dashboard application (puppetdb, puppetexplorer, foreman). On Sunday, December 14, 2014 4:48:59 AM UTC+1, Rob Reynolds wrote: On Tue, Dec 9, 2014 at 7:28 AM, cko der...@gmail.com wrote: Hi, I'm currently having an issue with the Windows Server 2008R2 nodes in our Exchange 2010 environment. Since I upgraded the four nodes to Puppet 3.7.3 , they do not check in to the Puppetmaster via the Windows Service every 30 minutes like all the other nodes do. Here is a gist of the output from puppet agent -t --debug that might help https://gist.github.com/anonymous/e972393ea742631ccaef Is there a problem in my environment or are there any known issues regarding this behavior? We are not aware of a known issue for this behavior. If you could check the eventlog and determine what issues it may be reporting? -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/ msgid/puppet-users/4da95e8f-9c8f-4dca-a91d-dfae1ce1dd1d%40goog legroups.com https://groups.google.com/d/msgid/puppet-users/4da95e8f-9c8f-4dca-a91d-dfae1ce1dd1d%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *Join us at **PuppetConf 2015, October 5-9 in Portland, OR - * http://2015.puppetconf.com/ *Register early to save 40%!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/ msgid/puppet-users/311eff85-ba40-42bf-a983-a363fe5a61d1% 40googlegroups.com https://groups.google.com/d/msgid/puppet-users/311eff85-ba40-42bf-a983-a363fe5a61d1%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *Join us at **PuppetConf 2015, October 5-9 in Portland, OR - * http://2015.puppetconf.com/ *Register early to save 40%!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/74fa3e65-2974-46b5-95c4-a30bf6374a60%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/74fa3e65-2974-46b5-95c4-a30bf6374a60%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *Join us at **PuppetConf 2015, October 5-9 in Portland, OR - * http://2015.puppetconf.com/ *Register early to save 40%!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK6ZmP45z4ZbG9ivu5HUM0XOAvkYNjGHttUMXDRVDzJ7dA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Puppet Exec Command on XML update
On Mon, Jan 5, 2015 at 11:47 PM, Pushparaj BS pushparaj...@gmail.com wrote: Hi, I have an XML file that has configuration for IIS Virtual settings for many webservice Applications, and each application is a node in the XML. Based on the XML, I have a Powershell script that can read the respective node and configure the IIS. However, I need to have puppet monitor this node in the XML and trigger the script if changed as the XML can be updated for some IIS changes for a webservice. I can see that exec command gives functionality to watch file changes, but I need to watch a node specifically. I don't think you will achieve this with Puppet alone. It seems that Puppet can kick off another tool when the file changes to do the more specific thing you need to do. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/f6572b8d-1086-4b54-9d42-837c1513feae%40googlegroups.com . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *Join us at **PuppetConf 2015, October 5-9 in Portland, OR - * http://2015.puppetconf.com/ *Register early to save 40%!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK5KoxKO9mk6y9%2BcD_W4EhrWVhvyQ2_pLGYxkWjYevyBTQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Windows Packages and DisplayName
On Mon, Dec 15, 2014 at 8:09 PM, Mauricio Tavares raubvo...@gmail.com wrote: Do you still need to use the DisplayName as the name of a package as mentioned in https://docs.puppetlabs.com/puppet/3.7/reference/resources_package_windows.html ? Yes. As long as you are using the built in package provider for Windows, this will be true. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/8db5122a-54eb-46c3-8695-d31ffb28c592%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/8db5122a-54eb-46c3-8695-d31ffb28c592%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *Join us at **PuppetConf 2015, October 5-9 in Portland, OR - * http://2015.puppetconf.com/ *Register early to save 40%!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK4srqR93bVJkMtzciEXPv0L_TL2hyZWmLAeHbAkAMaa3A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] puppet agent upgrade on windows
On Mon, Dec 8, 2014 at 8:32 AM, Dirk Heinrichs d...@recommind.com wrote: Am 05.12.2014 um 19:03 schrieb Rob Reynolds: Trying to upgrade Puppet with Puppet on Windows is harder because Windows locks files that are in use instead of letting you replace them in place. That's not true. Upgrading Puppet with Puppet on Windows works just fine. Downgrade is a different story, depending on the versions involved. I've alread done upgrades from 3.2.1 to 3.4.3 and I'm currently in the process of upgrading ~150 Windows agents from 3.4.3 (32bit) to 3.7.3 (64bit) and I don't see any problems related to file locks. It is true, but let me explain a little bit so you see what I mean by *harder*. The part about Windows locking files that are in use is true, but MSI forces the processes to exit, so the files are no longer locked (but Puppet is no longer running either). The thing you may not realize here is that Puppet exits abruptly mid-run so that the MSI can take over so you get an incomplete report because Puppet is no longer running once the MSI shuts it down. So if you had anything else you wanted to do, you hope that the MSI upgrade completes successfully (because you don't get the report sent from the upgrade, and you don't get a success). Then you hope the newer Puppet installs fine and then checks back in once it is upgraded. So when I say it locks files instead of letting you replace them in place, it's because we have to force Puppet to exit so we can continue the upgrade. On Linux, while everything is in memory, you can completely change out the files on disk. When I say it is harder because of that locking, the longer explanation above is what I am talking about. Some folks would be fine with having Puppet just exit and not submit a report, but I'm not sure if everyone would be fine with that. I think we can do better, I don't think having Puppet exit to perform an upgrade is a sufficient answer. Bye... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach *Tel*: +49 2226 159 (Ansage) 1149 *Email*: d...@recommind.com *Skype*: dirk.heinrichs.recommind www.recommind.com -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/5485B666.6030505%40recommind.com https://groups.google.com/d/msgid/puppet-users/5485B666.6030505%40recommind.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *Join us at **PuppetConf 2015, October 5-9 in Portland, OR - * http://2015.puppetconf.com/ *Register early to save 40%!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK7iW0Pn%2BWB9M6DDkTCfYSRTWzTUbYU_GeO_Lbwdg8dDCw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] puppet agent upgrade on windows
On Mon, Dec 8, 2014 at 8:27 AM, Jason Chinsen onzy...@gmail.com wrote: Hello Rob Thanks for the response. I will take a look at OpenTable's module for sure. I will also add -force on to my install line For the third part, we ran into another issue, and I am not sure if this is spelled out any where but we pass in the version 3.3.2 vs latest and most of our servers didn't have .net 4.0 and above and we were getting errors on these servers along the lines of chocolatey cannot parse the parameters with out .net 4.0 or higher To use chocolatey, you should ensure the .NET Framework 4.0+ is installed on those servers. Thanks again, Jason. On Friday, December 5, 2014 1:04:05 PM UTC-5, Rob Reynolds wrote: On Wed, Dec 3, 2014 at 9:43 AM, Jason Chinsen onz...@gmail.com wrote: Hello There, We started our puppet adventures at 3.2.x with both windows and linux boxes. Since then we have upgraded our Master to 3.3.2 and are looking to upgrade to 3.7. The linux agent upgrades are very simple, but I am running into issues with the windows agent upgrades :/ We have an Artifcatory based Nuget repo and all of the pipping is working. It looks like chocolatey is running an upgrade and it is not working. (it could very well be my nuget code :) as I am not a windows guy) Trying to upgrade Puppet with Puppet on Windows is harder because Windows locks files that are in use instead of letting you replace them in place. There is a module from OpenTable (puppetversion[1]) that may need some work to support the upgrade of PE agents as well, but it does a good job of upgrading out of band. [1] https://forge.puppetlabs.com/opentable/puppetversion This is the output of the puppet run: Debug: Executing 'C:\ProgramData\chocolatey\ chocolateyInstall\chocolatey.cmd update pe-agent -source nuget-repo'; Notice: /Stage[main]/Puppet_enterprise_agent_upgrade/Package[pe-agent]/ ensure: created Debug: /Stage[main]/Puppet_enterprise_agent_upgrade/Package[pe-agent]: The container Class[Puppet_enterprise_agent_upgrade] will propagate my refresh event And this is the output of the chocolatey run manually: C:\ProgramData\chocolatey\chocolateyInstall\chocolatey.cmd update pe-agent -source nuget-repo Nothing to update. Use -force. It may think things are good to go as it didn't detect errors. When I run an install vs upgrade it works as planned, with one lingering affect, where puppet tries to change 3.3.2 to latest all the time (this I can likely fix in the puppet manifest with a version number vs latest) Debug: Executing 'C:\ProgramData\chocolatey\ chocolateyInstall\chocolatey.cmd upd ate pe-agent -source nuget-repo' Notice: /Stage[main]/Puppet_enterprise_agent_upgrade/Package[pe-agent]/ensure: e nsure changed '3.3.2' to 'latest' Debug: /Package[pe-agent]: The container Class[Puppet_enterprise_agent_ upgrade] will propagate my refresh event This could be an issue with the provider itself. Would you follow up with a note on puppet-chocolatey[2]? [2] https://github.com/chocolatey/puppet-chocolatey/issues Any help would be great Thanks, Jason. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/ msgid/puppet-users/8be76ca0-4b98-494d-834a-2c910be423bd% 40googlegroups.com https://groups.google.com/d/msgid/puppet-users/8be76ca0-4b98-494d-834a-2c910be423bd%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *Join us at **PuppetConf 2015, October 5-9 in Portland, OR - * http://2015.puppetconf.com/ *Register early to save 40%!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/d9e2d6c3-f29f-4afd-9391-3c4db55ed10c%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/d9e2d6c3-f29f-4afd-9391-3c4db55ed10c%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *Join us at **PuppetConf 2015, October 5-9 in Portland, OR - * http://2015.puppetconf.com/ *Register early to save 40%!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK5N%2Bqf6xmST%2BoH_BbR%2BUF
Re: [Puppet Users] Unreported Windows nodes (Puppet 3.7.3, Exchange 2010)
On Sun, Dec 14, 2014 at 9:17 AM, cko dert...@gmail.com wrote: The Puppet Service is actually running. The eventlog shows records about successfully finished catalog runs. All files in the C:\ProgramData\PuppetLabs\puppet\var\state directory indicate that the puppet run finishes without problems. I suspect there is a problem with the submission of the report to the puppet master unless the puppet run is triggered manually. What user does the puppet agent service run under? That might be the reason they are marked out of sync in any dashboard application (puppetdb, puppetexplorer, foreman). On Sunday, December 14, 2014 4:48:59 AM UTC+1, Rob Reynolds wrote: On Tue, Dec 9, 2014 at 7:28 AM, cko der...@gmail.com wrote: Hi, I'm currently having an issue with the Windows Server 2008R2 nodes in our Exchange 2010 environment. Since I upgraded the four nodes to Puppet 3.7.3 , they do not check in to the Puppetmaster via the Windows Service every 30 minutes like all the other nodes do. Here is a gist of the output from puppet agent -t --debug that might help https://gist.github.com/anonymous/e972393ea742631ccaef Is there a problem in my environment or are there any known issues regarding this behavior? We are not aware of a known issue for this behavior. If you could check the eventlog and determine what issues it may be reporting? -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/ msgid/puppet-users/4da95e8f-9c8f-4dca-a91d-dfae1ce1dd1d% 40googlegroups.com https://groups.google.com/d/msgid/puppet-users/4da95e8f-9c8f-4dca-a91d-dfae1ce1dd1d%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *Join us at **PuppetConf 2015, October 5-9 in Portland, OR - * http://2015.puppetconf.com/ *Register early to save 40%!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/311eff85-ba40-42bf-a983-a363fe5a61d1%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/311eff85-ba40-42bf-a983-a363fe5a61d1%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *Join us at **PuppetConf 2015, October 5-9 in Portland, OR - * http://2015.puppetconf.com/ *Register early to save 40%!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK6XMRJytrtqa74CBG9RNNG9S5mrKg50szgjhCyLavPJRA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Install puppet agent on non-domain joined Windows box?
On Fri, Dec 12, 2014 at 7:45 AM, Charlie Baum charlieb...@gmail.com wrote: I don't know if I'm missing something obvious here or what, but I can't figure out how to get a Windows server that is a member of a workgroup to install puppet client and pull recipes from the puppet master. The default Local System account has no network access. Network Service account won't allow me to keep the client service started. You can't use a domain account. So how would one go about this? Trying to get puppet to do as much of my Windows build as possible, including domain join. Local System default should still be able to pull from the puppet master. For joining a domain, there is a domain_membership module[1] that can assist with that. As far as installing the puppet client, what things are you looking at? [1] https://forge.puppetlabs.com/trlinkin/domain_membership -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/e38fa636-6acc-483d-89d4-55bf20fddec1%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/e38fa636-6acc-483d-89d4-55bf20fddec1%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *Join us at **PuppetConf 2015, October 5-9 in Portland, OR - * http://2015.puppetconf.com/ *Register early to save 40%!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK7H6zOsGWkS-2NG7UW6MC7F0PBbs5111iQxyYuJ7y5jsQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Unreported Windows nodes (Puppet 3.7.3, Exchange 2010)
On Tue, Dec 9, 2014 at 7:28 AM, cko dert...@gmail.com wrote: Hi, I'm currently having an issue with the Windows Server 2008R2 nodes in our Exchange 2010 environment. Since I upgraded the four nodes to Puppet 3.7.3 , they do not check in to the Puppetmaster via the Windows Service every 30 minutes like all the other nodes do. Here is a gist of the output from puppet agent -t --debug that might help https://gist.github.com/anonymous/e972393ea742631ccaef Is there a problem in my environment or are there any known issues regarding this behavior? We are not aware of a known issue for this behavior. If you could check the eventlog and determine what issues it may be reporting? -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/4da95e8f-9c8f-4dca-a91d-dfae1ce1dd1d%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/4da95e8f-9c8f-4dca-a91d-dfae1ce1dd1d%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *Join us at **PuppetConf 2015, October 5-9 in Portland, OR - * http://2015.puppetconf.com/ *Register early to save 40%!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK7dtd6FdZ44erCh%3DQUGgcT%2B5g6NBSP6usHqgGAHgyRPXg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Passing exe switches on Windows
On Wed, Dec 10, 2014 at 5:23 AM, cko dert...@gmail.com wrote: Hi, I'm trying to get the following manifest to work on a Windows Server 2008R2 node: *package { 'signotec WinUSB':* * ensure = '1.0.4',* * source = E:/signotec_WinUSB_1.0.4_64Bit.exe,* * install_options = ['/S', '/vn'],* *}* Running 'puppet agent -t --debug' shows that the following command is executed: *Debug: Executing 'cmd.exe /c start puppet-install /w E:\signotec_WinUSB_1.0.4_64Bit.exe /S /vn'* About a second later, the MSI help pops up ( http://i.imgur.com/PpW5zVB.png ). When i manually run the command *E:\signotec_WinUSB_1.0.4_64Bit.exe /S /vn* the package Installation works as expected. Note that the /S /vn switches are mandatory with this particular package to perform a silent installation. What Puppet actually does is probably something like this: *msiexec.exe /qn /norestart /i E:/signotec_WinUSB_1.0.4_64Bit.exe /S /vn* Unlikely. Have you tried running the full command that Puppet is reporting that it is running? *cmd.exe /c start puppet-install /w E:\signotec_WinUSB_1.0.4_64Bit.exe /S /vn* Which fails because the past two parameters are not supported my msiexec. Any ideas how to work around this issue? -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/625500ec-db79-4564-ae25-883747c7ae54%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/625500ec-db79-4564-ae25-883747c7ae54%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *Join us at **PuppetConf 2015, October 5-9 in Portland, OR - * http://2015.puppetconf.com/ *Register early to save 40%!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK6xL0J0-Z-XHDQPo-SFXhUyCq78AYjFQwzyhipTR%3D8CZA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] puppet agent upgrade on windows
On Wed, Dec 3, 2014 at 9:43 AM, Jason Chinsen onzy...@gmail.com wrote: Hello There, We started our puppet adventures at 3.2.x with both windows and linux boxes. Since then we have upgraded our Master to 3.3.2 and are looking to upgrade to 3.7. The linux agent upgrades are very simple, but I am running into issues with the windows agent upgrades :/ We have an Artifcatory based Nuget repo and all of the pipping is working. It looks like chocolatey is running an upgrade and it is not working. (it could very well be my nuget code :) as I am not a windows guy) Trying to upgrade Puppet with Puppet on Windows is harder because Windows locks files that are in use instead of letting you replace them in place. There is a module from OpenTable (puppetversion[1]) that may need some work to support the upgrade of PE agents as well, but it does a good job of upgrading out of band. [1] https://forge.puppetlabs.com/opentable/puppetversion This is the output of the puppet run: Debug: Executing 'C:\ProgramData\chocolatey\chocolateyInstall\chocolatey.cmd update pe-agent -source nuget-repo'; Notice: /Stage[main]/Puppet_enterprise_agent_upgrade/Package[pe-agent]/ ensure: created Debug: /Stage[main]/Puppet_enterprise_agent_upgrade/Package[pe-agent]: The container Class[Puppet_enterprise_agent_upgrade] will propagate my refresh event And this is the output of the chocolatey run manually: C:\ProgramData\chocolatey\chocolateyInstall\chocolatey.cmd update pe-agent -source nuget-repo Nothing to update. Use -force. It may think things are good to go as it didn't detect errors. When I run an install vs upgrade it works as planned, with one lingering affect, where puppet tries to change 3.3.2 to latest all the time (this I can likely fix in the puppet manifest with a version number vs latest) Debug: Executing 'C:\ProgramData\chocolatey\chocolateyInstall\chocolatey.cmd upd ate pe-agent -source nuget-repo' Notice: /Stage[main]/Puppet_enterprise_agent_upgrade/Package[pe-agent]/ensure: e nsure changed '3.3.2' to 'latest' Debug: /Package[pe-agent]: The container Class[Puppet_enterprise_agent_upgrade] will propagate my refresh event This could be an issue with the provider itself. Would you follow up with a note on puppet-chocolatey[2]? [2] https://github.com/chocolatey/puppet-chocolatey/issues Any help would be great Thanks, Jason. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/8be76ca0-4b98-494d-834a-2c910be423bd%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/8be76ca0-4b98-494d-834a-2c910be423bd%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *Join us at **PuppetConf 2015, October 5-9 in Portland, OR - * http://2015.puppetconf.com/ *Register early to save 40%!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK53VLQOATJDXQ1YdehXpOhhugMUnf5mG8Wsc0iwDeZ2PA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] What can I do with erb templates in Puppet?
Short of what Spencer has pointed out, there is not a module out there (to my knowledge) that will let you edit xml files in place with XPath type settings on Windows. Yet. I'm sure this is a paint point for quite a few folks that would want to be able to update an XML file in place. Augeas would be a good way of doing this if/when it started supporting Windows. Another would be a module specifically for this use case. On Sat, Nov 22, 2014 at 7:20 AM, Spencer Krum krum.spen...@gmail.com wrote: Puppet provides the erb templating system so you can do variable expansion and replacement in your templates. The templates are processed on the puppet master and sent to the client (windows) as text. The windows client then replaces the old config file with the new one from the template. Step 1) Copy an existing config file into your puppet module's template section. Name it config_file.erb Step 2) Replace variables in the config file with puppet facts or variables from your manifests Example: If a line said: listen_address = 192.168.0.5 You would change it to: listen_address = %= $::ipaddress % Step 3) Run Puppet on the client. Nothing should change on the first client, but all subsequent clients will be easier to configure. Hope this helps, Spencer On Sat, Nov 22, 2014 at 12:24 AM, Renu Chuppala rchupp...@gmail.com wrote: Please provide me steps to modify the config files using templates in *WINDOWS* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/45e3f9da-31e0-4311-8a9f-931918547ce8%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/45e3f9da-31e0-4311-8a9f-931918547ce8%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Spencer Krum (619)-980-7820 -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CADt6FWOTTRVf3P2PGRTDX9uCCr2fs%2BpR47yWeJ8q%3DaaUxnpN9w%40mail.gmail.com https://groups.google.com/d/msgid/puppet-users/CADt6FWOTTRVf3P2PGRTDX9uCCr2fs%2BpR47yWeJ8q%3DaaUxnpN9w%40mail.gmail.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *Join us at **PuppetConf 2015, October 5-9 in Portland, OR - * http://2015.puppetconf.com/ *Register early to save 40%!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK6aHWGUsG59tgM5Bk8q_f3jYNyWhterg2-kNsxpwy121Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] What can I do with erb templates in Puppet?
On Mon, Nov 24, 2014 at 1:46 PM, Spencer Krum krum.spen...@gmail.com wrote: Maybe file_line hacks? Maybe? I don't know. I threw together a thought earlier today on what this might look like as a custom type/provider - https://gist.github.com/ferventcoder/3e8cf9ff046fef16ad45 On Mon, Nov 24, 2014 at 9:55 AM, Rob Reynolds r...@puppetlabs.com wrote: Short of what Spencer has pointed out, there is not a module out there (to my knowledge) that will let you edit xml files in place with XPath type settings on Windows. Yet. I'm sure this is a paint point for quite a few folks that would want to be able to update an XML file in place. Augeas would be a good way of doing this if/when it started supporting Windows. Another would be a module specifically for this use case. On Sat, Nov 22, 2014 at 7:20 AM, Spencer Krum krum.spen...@gmail.com wrote: Puppet provides the erb templating system so you can do variable expansion and replacement in your templates. The templates are processed on the puppet master and sent to the client (windows) as text. The windows client then replaces the old config file with the new one from the template. Step 1) Copy an existing config file into your puppet module's template section. Name it config_file.erb Step 2) Replace variables in the config file with puppet facts or variables from your manifests Example: If a line said: listen_address = 192.168.0.5 You would change it to: listen_address = %= $::ipaddress % Step 3) Run Puppet on the client. Nothing should change on the first client, but all subsequent clients will be easier to configure. Hope this helps, Spencer On Sat, Nov 22, 2014 at 12:24 AM, Renu Chuppala rchupp...@gmail.com wrote: Please provide me steps to modify the config files using templates in *WINDOWS* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/45e3f9da-31e0-4311-8a9f-931918547ce8%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/45e3f9da-31e0-4311-8a9f-931918547ce8%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Spencer Krum (619)-980-7820 -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CADt6FWOTTRVf3P2PGRTDX9uCCr2fs%2BpR47yWeJ8q%3DaaUxnpN9w%40mail.gmail.com https://groups.google.com/d/msgid/puppet-users/CADt6FWOTTRVf3P2PGRTDX9uCCr2fs%2BpR47yWeJ8q%3DaaUxnpN9w%40mail.gmail.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *Join us at **PuppetConf 2015, October 5-9 in Portland, OR - * http://2015.puppetconf.com/ *Register early to save 40%!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK6aHWGUsG59tgM5Bk8q_f3jYNyWhterg2-kNsxpwy121Q%40mail.gmail.com https://groups.google.com/d/msgid/puppet-users/CAMJiBK6aHWGUsG59tgM5Bk8q_f3jYNyWhterg2-kNsxpwy121Q%40mail.gmail.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Spencer Krum (619)-980-7820 -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CADt6FWMN0DqHzGhQaXopqLR_Jev6q_pcaaysfA6JXo98%3DYLGwQ%40mail.gmail.com https://groups.google.com/d/msgid/puppet-users/CADt6FWMN0DqHzGhQaXopqLR_Jev6q_pcaaysfA6JXo98%3DYLGwQ%40mail.gmail.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *Join us at **PuppetConf 2015, October 5-9 in Portland, OR - * http://2015.puppetconf.com/ *Register early to save 40%!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK6JAXSnvq7rn5EciU6X4azry-i%3DT_mEaM20%2BYWrg5UhcA
Re: [Puppet Users] Powershell - Run as another user account
On Tue, Oct 28, 2014 at 10:48 AM, Jeff Picklyk jpick...@gmail.com wrote: Hello everyone, What is the suggested way with Puppet 3.7.x of running a powershell command under another user's context? I see that exec has a group and user parameter but I can't find documentation on how this relates to windows and specifically powershell commands. It would be nice if I could just provide a PSCredential as an argument and powershell module just deal with it for me. Ideas? Hi Jeff, You will likely want to watch PUP-532[1] as it addresses adding the runas for exec on Windows. This is something that is not likely to come out until Puppet 4 or later. It is something that is high on our priority list though, so I'd think we'll see it earlier in the 4.x series. If you need something sooner, you might be able to make a custom provider for exec that could perform what is needed. Password would likely need to be added to the type, so that makes it a bit more challenging. [1] https://tickets.puppetlabs.com/browse/PUP-532 Thanks, Jeff -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/5d210cb3-6c95-4ead-8791-80b1ceea81f0%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/5d210cb3-6c95-4ead-8791-80b1ceea81f0%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *Join us at **PuppetConf 2015, October 5-9 in Portland, OR - * http://2015.puppetconf.com/ *Register early to save 40%!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK5B4yHLFuC1PuL6kkKWwWtrrCDPAP8nN_V8k5CmAxdjqw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Re: Passing Parameters to Powershell
On Wed, Oct 15, 2014 at 10:39 AM, Paul Ponzeka ponzek...@gmail.com wrote: Hopefully this is my last question. How do i get the variable that passes through to powershell to be a proper array? The reason is that i need to run a foreach loop on it, but it sees the variable as one long item instead of multiples if its configured as such: $forwarders = [1.1.1.1,2.2.2.2] You could pass a string with a known delimiter and use that to split into an array. There are probably other options for this as well, but I'm not sure a ruby array is going to directly transfer to a posh array. On Monday, October 13, 2014 1:48:46 PM UTC-4, Paul Ponzeka wrote: Josh, your a god among men. Thank you so much. It was the literal string for the variable that resolved it. On Monday, October 13, 2014 1:05:39 PM UTC-4, Josh Cooper wrote: Hi Paul, On Mon, Oct 13, 2014 at 7:15 AM, Paul Ponzeka ponz...@gmail.com wrote: Thanks for this rob. I still cannot get the variable to pass into the script. Now i have the *setdnsforwarders.ps1.erb* template, Note puppet doesn't care what the file extension is, so long as the template('path/to/file') refers to the correct file. and here is the complete copy of what is in the template: $outside = %= scope['dnsforwarders'] % $outside | out-file C:\output.log -append I've also tried the following: %= scope.lookupvar('@dnsforwarders') % | out-file C:\output.log -append Variables in the current scope can be accessed directly as %= @dnsforwarders %, as opposed to the variable named @dnsforwarders %= scope.lookupvar('windows_dns::forwarders') % | out-file C:\output.log -append I think the pipeline construct isn't doing what you would expect. I think you need to quote the ERB snippet, so that powershell sees a literal string: '%= scope.lookupvar('windows_dns::forwarders') %' | out-file C:\output.log -append %= scope.lookupvar('windows_dns::config') % | out-file C:\output.log -append Each time the output.log file is blank. Here is my windows_dns::config file: class windows_dns::config { case $kernelmajversion { 6.3: { $forwarder_execute = 'windows_dns/setdnsforwarders.ps1.erb' $forwarder_check = 'windows_dns/checkdnsforwarders.ps1' $dnsforwarders = $windows_dns::forwarders } 6.1: { $forwarder_execute = 'windows_dns/setdnsforwarders_legacy.ps1' $forwarder_check = 'windows_dns/checkdnsforwarders_legacy.ps1' } } exec { 'forwarderscreate': command = template ($forwarder_execute), #unless = template ($forwarder_check), provider = powershell, logoutput = true, } And here is where the variable is originally defined in the windows_dns::init.pp class windows_dns( $forwarders = '1.1.1.1' ) { anchor { 'windows_dns::begin': } - class{'windows_dns::install': } - class{'windows_dns::config': } - class{'windows_dns::service': } - anchor { 'windows_dns::end': } } If you are using a recent version of puppet, you don't need the anchor pattern. See https://docs.puppetlabs.com/puppet/latest/reference/lang_ containment.html Any help would be amazing to get the variable to pass Here's an example using an inline template that works correctly. Note I have to escape the backslash c:\\output.log due to the double quoted string. You won't need to do that if the template is in an external file: class windows_dns::config { $dnsforwarder = www.example.com exec { 'command': command = inline_template('%= scope['dnsforwarder'] %' | out-file c:\\output.log -append), logoutput = true, provider = powershell } } include windows_dns::config C:\puppet apply powershell.pp Notice: Compiled catalog for win-agent in environment production in 0.11 seconds Notice: /Stage[main]/Windows_dns::Config/Exec[command]/returns: executed successfully Notice: Finished catalog run in 1.09 seconds Note this will create a UTF-16LE encoded file with a byte-order mark. You may want to specify the encoding of the file you're writing to. On Friday, October 10, 2014 5:28:06 PM UTC-4, Rob Reynolds wrote: On Thu, Oct 9, 2014 at 4:18 PM, Paul Ponzeka ponz...@gmail.com wrote: Thanks josh, so in my template file setdnsforwarders.ps1 is this the correct syntax? setdnsforwarders.ps1.erb $outside = %= scope['dnsforwarders'] % $outside | out-file C:\output.log -append On Thursday, October 9, 2014 4:52:04 PM UTC-4, Josh Cooper wrote: On Thu, Oct 9, 2014 at 12:59 PM, Juan Andres Ramirez jandr...@gmail.com wrote: Example: I have my script on powershell in the next path in Puppet: define some::module() { $script = server1\\shared\\script.ps1 exec { Executing a script: command = powershell.exe -ExecutionPolicy ByPass -File ${script} ${param1}, unless = powershell.exe -ExecutionPolicy ByPass -command \here any command
Re: [Puppet Users] Windows 3.7.1 Puppet Agent Upgrade - Completely Broken?!
On Thu, Oct 16, 2014 at 9:47 AM, Dan Gibbons dangibbons@gmail.com wrote: Hi, Today I removed an old puppet version (3.4.3) and installed the new 64bit 3.7.1 on a Windows 2008 server. After installation it appears as if nothing works now: In C:\ProgramData\PuppetLabs\puppet\etc\puppet.config I have: [main] server=mypuppetserver pluginsync=true autoflush=true environment=dev In C:\ProgramData\PuppetLabs\facter\facts.d I have some custom facts: role.txt (with contentserver_role=icisapi) Problems: - When running puppet checks form the command line likefacter it doesn't display any facts from the facts.d folder - When running puppet agent --configprint server it always returns puppet - When running puppet agent --configprint environment it always returns production It's as if the Puppet agent is ignoring C:\ProgramData\PuppetLabs\puppet\etc\puppet.config. I tried looking in the release notes to see if theres any breaking changes affecting this but can't see anything. Hi Dan, Can you take a look at the file and ensure that it is named puppet.conf and not puppet.config? Any ideas!? Thanks Dan -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/693cee37-fbc3-486e-9b9c-58dc56d5bb56%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/693cee37-fbc3-486e-9b9c-58dc56d5bb56%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *Join us at **PuppetConf 2015, October 5-9 in Portland, OR - * http://2015.puppetconf.com/ *Register early to save 40%!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK6z2wDaNwfMdvgmvTBgjagmUiRpFk_QSE5C%3D19yNkEFmg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Re: EXEC resource fails but does not log a failure
On Wed, Oct 8, 2014 at 2:51 PM, Paul Chernoch pachern...@gmail.com wrote: Thank you for your advice. While researching the problem with a colleague, we discovered the root cause: TF.EXE HISTORY returns an ERRORLEVEL of 0 (meaning success) in one narrow case when it should not. Case 1: Running user is Authorized for TFS, no login credentials on command line. Success 0. CORRECT. Case 2: Running user is Authorized for TFS, good login credentials on command line. Success 0. CORRECT. Case 3: Running user is Authorized for TFS, bad login credentials on command line. Error 1. CORRECT. Case 4: Running user is NOT Authorized for TFS, no login credentials on command line. Success 0. INCORRECT. Case 5: Running user is NOT Authorized for TFS, good login credentials on command line. Success 0. CORRECT. Case 6: Running user is NOT Authorized for TFS, bad login credentials on command line. Error 1. CORRECT. So only case 4 produces incorrect results. Strangely, the TF VIEW command, which actually fetches a file from TFS, handles all the cases properly. Paul On Tuesday, October 7, 2014 12:15:23 PM UTC-4, Paul Chernoch wrote: I have an EXEC command that has an onlyif condition. When I have my puppet service running as the correct user account, all goes well. When the puppet agent is running under an inadequately privileged account, some operations fail silently. During a maintenance action, another staff member tried to upgrade the puppet agent. When that didn't work with our version of enterprise, he reinstalled puppet, but forgot to change the service accounts to be our special puppet user. One thing you can add to your install for the agent that will persist across upgrades is an MSI property you pass to the installer - PUPPET_AGENT_ACCOUNT_USER=special puppet user PUPPET_AGENT_ACCOUNT_PASSWORD=special puppet user pass See Installing PE Agent Windows[1] for more information. This was introduced in PE 3.2. [1] https://docs.puppetlabs.com/pe/latest/install_windows.html#msi-properties That puppet user has access to Team Foundation Server while the default account (NT System) does not. I expected that puppet enterprise would show error messages in the log and show agent runs as failing. IT DID NOT. To diagnose the problem, I started a special shell using Psexec.exe -i -s cmd.exe. This sysinternals tool allows me to impersonate nt authority\system. While running under that account, I verified that my EXEC command and the accompanying onlyif command each fail with error code 1. The EXEC command being run is TF.EXE with the VIEW option, the Team Foundation Server command line executable. The onlyif command is a shell call to ruby.exe which executes a rub script that also calls TF.EXE, this time with the HISTORY option. The basic idea is that I call TF HISTORY to see if there is a newer file than the one I have extracted. If there is, then I return one value to indicate that EXEC should do its job. If there is no newer file then I return a code that indicates no changes occurred and EXEC should not perform its action. If TF.EXE returns an error code in the onlyif command, I decided to tell EXEC that it shoudl try to get the file whether it needs to or not. Running both TF VIEW and RUBY (which calls TF HISTORY) in the special shell with the wrong user yields return codes of 1. This should mean the the EXEC failed, but it does not log failure. What should I do? Here is a fragment of my puppet code: exec { tf view ${filename} /version:${versionspec}: command = $tfview_cmd, path = $exec_path, cwd = $tf_dir_unix, onlyif= $tfhistory_cmd, returns = [0], logoutput = true, require = Class['tfview::tfcomponents'] } I am running agents on Windows 2008R2. Paul -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/493d455a-eb1a-4af0-80f6-1c742ccb99f4%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/493d455a-eb1a-4af0-80f6-1c742ccb99f4%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK4CD2rOm5GFZY7Est1XRWfY%2BpiAXU7SQv%3D%2BSQWvw99XAA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Re: Passing Parameters to Powershell
On Thu, Oct 9, 2014 at 4:18 PM, Paul Ponzeka ponzek...@gmail.com wrote: Thanks josh, so in my template file setdnsforwarders.ps1 is this the correct syntax? setdnsforwarders.ps1.erb $outside = %= scope['dnsforwarders'] % $outside | out-file C:\output.log -append On Thursday, October 9, 2014 4:52:04 PM UTC-4, Josh Cooper wrote: On Thu, Oct 9, 2014 at 12:59 PM, Juan Andres Ramirez jandr...@gmail.com wrote: Example: I have my script on powershell in the next path in Puppet: define some::module() { $script = server1\\shared\\script.ps1 exec { Executing a script: command = powershell.exe -ExecutionPolicy ByPass -File ${script} ${param1}, unless = powershell.exe -ExecutionPolicy ByPass -command \here any command on powershell \ } On Thursday, October 9, 2014 4:22:14 PM UTC-3, Paul Ponzeka wrote: I am using Puppet installed with the powershell module. I am struggling with how to pass a puppet variable through to powershell. For instance I have the following in my module *init.pp* file: class windows_dns( $forwarders = '1.1.1.1' ) { anchor { 'windows_dns::begin': } - class{'windows_dns::install': } - class{'windows_dns::config': } - class{'windows_dns::service': } - anchor { 'windows_dns::end': } } Then in my *config.pp* file I have: class windows_dns::config { case $kernelmajversion { 6.3: { $forwarder_execute = 'windows_dns/setdnsforwarders.ps1' $forwarder_check = 'windows_dns/checkdnsforwarders.ps1' $dnsforwarders = $windows_dns::forwarders } 6.1: { $forwarder_execute = 'windows_dns/setdnsforwarders_legacy.ps1' $forwarder_check = 'windows_dns/checkdnsforwarders_legacy.ps1' } } exec { 'forwarderscreate': command = template ($forwarder_execute), unless = template ($forwarder_check), provider = powershell, logoutput = true, } I have stored as a template in the manifest a powershell script file as: $dnsforwarders | out-file C:\test.log I obviously want to use a more complex output. I tried adding a parameter to the top of my powershell script but dont understand how to pass that as an option to puppet. The variable passes through fine. I tested by changing the command to *command= template ($dnsforwarders)* and i of course got an error from puppet about it not being able to find the template named *1.1.1.1* in the manifest. I just dont know how to pass this through to the shell. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/ msgid/puppet-users/c62b8af5-4890-4a84-905e-63e7b6132e13% 40googlegroups.com https://groups.google.com/d/msgid/puppet-users/c62b8af5-4890-4a84-905e-63e7b6132e13%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. I would recommend using the powershell provider as you were doing. In your powershell script 'windows_dns/setdnsforwarders.ps1', resolve parameters using ERB syntax found in https://docs.puppetlabs.com/ guides/templating.html#referencing-variables, something like: %= scope['dnsforwarders'] % Josh -- Josh Cooper Developer, Puppet Labs -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/961dd225-1159-48fe-a9bf-c727bf094b74%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/961dd225-1159-48fe-a9bf-c727bf094b74%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK4HaH0RJ8gDQF-Cb5i5sXwYwJmO1ETEjX0-v35zSmug_Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Re: Passing Parameters to Powershell
On Thu, Oct 9, 2014 at 2:35 PM, Juan Andres Ramirez jandresa...@gmail.com wrote: if you want execute a powershell file: command = powershell.exe -ExecutionPolicy ByPass -File file.ps1 ${param1} I would recommend using -Command and staying away from the error prone -File. -Command has more consistency with passing the exit code back than -File does and you can still use it to execute against a file. For more details please see PowerShell, batch files, and exit codes[1]. [1] http://zduck.com/2012/powershell-batch-files-exit-codes/ On Thursday, October 9, 2014 4:22:14 PM UTC-3, Paul Ponzeka wrote: I am using Puppet installed with the powershell module. I am struggling with how to pass a puppet variable through to powershell. For instance I have the following in my module *init.pp* file: class windows_dns( $forwarders = '1.1.1.1' ) { anchor { 'windows_dns::begin': } - class{'windows_dns::install': } - class{'windows_dns::config': } - class{'windows_dns::service': } - anchor { 'windows_dns::end': } } Then in my *config.pp* file I have: class windows_dns::config { case $kernelmajversion { 6.3: { $forwarder_execute = 'windows_dns/setdnsforwarders.ps1' $forwarder_check = 'windows_dns/checkdnsforwarders.ps1' $dnsforwarders = $windows_dns::forwarders } 6.1: { $forwarder_execute = 'windows_dns/setdnsforwarders_legacy.ps1' $forwarder_check = 'windows_dns/checkdnsforwarders_legacy.ps1' } } exec { 'forwarderscreate': command = template ($forwarder_execute), unless = template ($forwarder_check), provider = powershell, logoutput = true, } I have stored as a template in the manifest a powershell script file as: $dnsforwarders | out-file C:\test.log I obviously want to use a more complex output. I tried adding a parameter to the top of my powershell script but dont understand how to pass that as an option to puppet. The variable passes through fine. I tested by changing the command to *command= template ($dnsforwarders)* and i of course got an error from puppet about it not being able to find the template named *1.1.1.1* in the manifest. I just dont know how to pass this through to the shell. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/d9fc7278-294d-45ef-9cea-ee9efc43748f%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/d9fc7278-294d-45ef-9cea-ee9efc43748f%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK77pATQAuQ8huFFzZ2Qjb7rGFH7xuX9WQ7qe6gMQ-oFcg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Windows woes.....how to send a refresh event to an array of services, with one service depending on one other?
On Thu, Oct 2, 2014 at 1:00 AM, Stephen Wallace whizbang.wall...@gmail.com wrote: Hi, I'm using PE 3.1.1 on Win2k8R2. I'm sending a refresh event to a class containing this declaration. service { ['Sentinel RMS License Manager', 'Micro Focus XDB Server for ETD 2.2', 'Micro Focus CES daemon']: ensure = 'running', enable = 'true', } This results in the follow Windows error embedded in the puppet debug output. * Error: /Stage[main]/Mf_ent_test_server::Init2/Service[Sentinel RMS License Manager]: Cannot stop Sentinel RMS License Manager, error was: Execution of 'C:/Windows/system32/net.exe stop Sentinel RMS License Manager' returned 4294967295: The following services are dependent on the Sentinel RMS License Manager service. Stopping the Sentinel RMS License Manager service will also stop these services. Micro Focus CES daemon Do you want to continue this operation? (Y/N) [N]: No valid response was provided. ** i.e. To refresh the License Manager, I also need to refresh Micro Focus CES daemon I suppose chaining each service in turn ensure = stopped, then chaining each again ensure = running would do the trick. Bit messy however. Any ideas on this one would be appreciated. Lovin' Windoze.(probably!) It seems we could enhance the functionality of the windows service provider a bit. I'm not sure this is set up as a ticket yet after searching through our backlog. I can add a ticket for this Regs Stephen -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/4a13d87f-1563-4994-a24e-322146eac348%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/4a13d87f-1563-4994-a24e-322146eac348%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *Join us at PuppetConf 2014 http://www.puppetconf.com/, September 20-24 in San Francisco* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK4B25TDYFykBk1M7kfUnGaQZfxzce3XTuCLYuB7J7Xprw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Windows woes.....how to send a refresh event to an array of services, with one service depending on one other?
On Thu, Oct 2, 2014 at 1:00 AM, Stephen Wallace whizbang.wall...@gmail.com wrote: Hi, I'm using PE 3.1.1 on Win2k8R2. I'm sending a refresh event to a class containing this declaration. service { ['Sentinel RMS License Manager', 'Micro Focus XDB Server for ETD 2.2', 'Micro Focus CES daemon']: ensure = 'running', enable = 'true', } This results in the follow Windows error embedded in the puppet debug output. * Error: /Stage[main]/Mf_ent_test_server::Init2/Service[Sentinel RMS License Manager]: Cannot stop Sentinel RMS License Manager, error was: Execution of 'C:/Windows/system32/net.exe stop Sentinel RMS License Manager' returned 4294967295: The following services are dependent on the Sentinel RMS License Manager service. Stopping the Sentinel RMS License Manager service will also stop these services. Micro Focus CES daemon Do you want to continue this operation? (Y/N) [N]: No valid response was provided. ** This is not a desirable outcome at all. i.e. To refresh the License Manager, I also need to refresh Micro Focus CES daemon I suppose chaining each service in turn ensure = stopped, then chaining each again ensure = running would do the trick. Bit messy however. Agreed that this would be messy. Any ideas on this one would be appreciated. Lovin' Windoze.(probably!) Regs Stephen -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/4a13d87f-1563-4994-a24e-322146eac348%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/4a13d87f-1563-4994-a24e-322146eac348%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *Join us at PuppetConf 2014 http://www.puppetconf.com/, September 20-24 in San Francisco* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK4T9g-REaiM6UqvHbbcRc56-9_raCVL7J3o%3DCq-8f92sw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Best way to deploy the Puppet client to a large set of Windows servers?
On Wed, Oct 1, 2014 at 3:30 PM, Brian Morris nomadicextre...@gmail.com wrote: Hello all, There may come a need for me to perform a wide deployment of the Puppet client to Windows servers. I am curious to know how others have accomplished this. Concerns I have: - No other tools are in place that readily come to mind for pushing the client out. VCM is in play, but is difficult at best to deploy other applications with. The client could certainly be placed on a central file share, but pulling rather than pushing sounds like it will require direct Sysadmin involvement. - To ease the pain I could set the Puppet Master to auto-sign certificates for a small window of time, but am unsure if this would be worthwhile. - I can imagine a patch party where a bunch of Sysadmins each get a list of servers to go hand perform the installation on, but I am hoping for something much cleaner than this. I'm not sure yet if we have an official/recommended way of getting the agent installed. I believe we are working on making this process easier though. So now an alternative recommendation of going about it - Is WinRm configured on these servers? I'm guessing no b/c they are stock. If so you have a much easier time moving forward, but it is not configured by default. So the next option is Wmi calls. There is a really low level Wmi call you can make to Win32_Process.Create[1] that you can use to create a process to install the puppet agent if you have administrative privileges. You can do this remotely. This works with Windows OOTB. If one could connect, you could pass a command to msiexec to run the installer with a url to the agent msi. You would want to put it on a file share that all of these servers can access (or use the official download). Take a look at automated installation[2] and msi properties[3]. So you could set your call as msiexec and args /qn /i \\file\share\location\of\puppet.msi PUPPET_MASTER_SERVER=puppet.example.com You could run that command as fire and forget and wait for them to all finish up as they check in with the master. I did a little searching and found a couple of gems out there that are related to WMI[4][5]. Note: I once worked on a tool where we did something very similar to this. [1] http://msdn.microsoft.com/en-us/library/aa389388.aspx [2] https://docs.puppetlabs.com/guides/install_puppet/install_windows.html#automated-installation [3] https://docs.puppetlabs.com/guides/install_puppet/install_windows.html#msi-properties [4] https://rubygems.org/gems/ruby-wmi [5] https://rubygems.org/gems/wmi-lite -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/0cb53cf7-6e6e-41c3-8855-8217cfaae923%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/0cb53cf7-6e6e-41c3-8855-8217cfaae923%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *Join us at PuppetConf 2014 http://www.puppetconf.com/, September 20-24 in San Francisco* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK7BaHkWypqZsQA2Y6f%3D1cj9FZ4E1KTfJntXw7F_9xRAWA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Best way to deploy the Puppet client to a large set of Windows servers?
On Thu, Oct 2, 2014 at 5:24 PM, Brian Morris nomadicextre...@gmail.com wrote: Thank you, Rob. I have a lot of reading to do. :) On Thu, Oct 2, 2014 at 3:12 PM, Rob Reynolds r...@puppetlabs.com wrote: On Wed, Oct 1, 2014 at 3:30 PM, Brian Morris nomadicextre...@gmail.com wrote: Hello all, There may come a need for me to perform a wide deployment of the Puppet client to Windows servers. I am curious to know how others have accomplished this. Concerns I have: - No other tools are in place that readily come to mind for pushing the client out. VCM is in play, but is difficult at best to deploy other applications with. The client could certainly be placed on a central file share, but pulling rather than pushing sounds like it will require direct Sysadmin involvement. - To ease the pain I could set the Puppet Master to auto-sign certificates for a small window of time, but am unsure if this would be worthwhile. - I can imagine a patch party where a bunch of Sysadmins each get a list of servers to go hand perform the installation on, but I am hoping for something much cleaner than this. I'm not sure yet if we have an official/recommended way of getting the agent installed. I believe we are working on making this process easier though. So now an alternative recommendation of going about it - Is WinRm configured on these servers? I'm guessing no b/c they are stock. If so you have a much easier time moving forward, but it is not configured by default. So the next option is Wmi calls. There is a really low level Wmi call you can make to Win32_Process.Create[1] that you can use to create a process to install the puppet agent if you have administrative privileges. You can do this remotely. This works with Windows OOTB. If one could connect, you could pass a command to msiexec to run the installer with a url to the agent msi. You would want to put it on a file share that all of these servers can access (or use the official download). Take a look at automated installation[2] and msi properties[3]. So you could set your call as msiexec and args /qn /i \\file\share\location\of\puppet.msi PUPPET_MASTER_SERVER= puppet.example.com You could run that command as fire and forget and wait for them to all finish up as they check in with the master. I did a little searching and found a couple of gems out there that are related to WMI[4][5]. Note: I once worked on a tool where we did something very similar to this. [1] http://msdn.microsoft.com/en-us/library/aa389388.aspx [2] https://docs.puppetlabs.com/guides/install_puppet/install_windows.html#automated-installation [3] https://docs.puppetlabs.com/guides/install_puppet/install_windows.html#msi-properties [4] https://rubygems.org/gems/ruby-wmi [5] https://rubygems.org/gems/wmi-lite Ethan pointed out that PSExec[1] may still be a possibility. That could drastically simplify things but requires a Windows box to contact the others. [1] http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/0cb53cf7-6e6e-41c3-8855-8217cfaae923%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/0cb53cf7-6e6e-41c3-8855-8217cfaae923%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *Join us at PuppetConf 2014 http://www.puppetconf.com/, September 20-24 in San Francisco* -- You received this message because you are subscribed to a topic in the Google Groups Puppet Users group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/pSo5jKyezmU/unsubscribe. To unsubscribe from this group and all its topics, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK7BaHkWypqZsQA2Y6f%3D1cj9FZ4E1KTfJntXw7F_9xRAWA%40mail.gmail.com https://groups.google.com/d/msgid/puppet-users/CAMJiBK7BaHkWypqZsQA2Y6f%3D1cj9FZ4E1KTfJntXw7F_9xRAWA%40mail.gmail.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAH8X0%2BFs7j-yepqMj5Xg4Xqh5pSZ_THKAwQj4PhcxadnUREAXA%40mail.gmail.com https://groups.google.com/d/msgid/puppet-users/CAH8X0%2BFs7j-yepqMj5Xg4Xqh5pSZ_THKAwQj4PhcxadnUREAXA%40mail.gmail.com
Re: [Puppet Users] Announce: Puppet Server 0.2.0
On Fri, Sep 26, 2014 at 7:56 AM, Trevor Vaughan tvaug...@onyxpoint.com wrote: +1 for a Native Code drop in. That would make me crazy happy actually. -1 for sticking Java everywhere. That would make some of my users hate me with passion. Java just on server side. Native is moving towards C++. Trevor On Thu, Sep 25, 2014 at 4:55 PM, Deepak Giridharagopal dee...@puppetlabs.com wrote: On Thu, Sep 25, 2014 at 1:32 PM, Andy Parker a...@puppetlabs.com wrote: Puppet apply will be sticking around. The exact way in which it will work isn't completely clear yet. There are several possibilities from requiring the jvm on all nodes that run puppet apply to changing apply to use a compile server to actually run manifests or possibly reimplementing the interpreter in a non-jvm language and using JNI to make it available on the puppet-server. My currently leaning is to implement the language in a jvm language and requiring that a masterless setup has the jvm on the node. Heh...I'm leaning more towards the native code route, but this is definitely something we should work out on the puppet-dev list before we actually proceed down a path. Regardless, in the meantime apply will work how it always has. deepak -- Deepak Giridharagopal / Puppet Labs -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAOjOXY0h6dK3DMYqPjPhYXbh8ta3%2B5cAbvaOU7%2BE0BsCV4FqPQ%40mail.gmail.com https://groups.google.com/d/msgid/puppet-users/CAOjOXY0h6dK3DMYqPjPhYXbh8ta3%2B5cAbvaOU7%2BE0BsCV4FqPQ%40mail.gmail.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Trevor Vaughan Vice President, Onyx Point, Inc (410) 541-6699 tvaug...@onyxpoint.com -- This account not approved for unencrypted proprietary information -- -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CANs%2BFoUQPSaNqYEGMywXfYFZKV2XLbmm%3DHw4v6j0YUf9SzuigQ%40mail.gmail.com https://groups.google.com/d/msgid/puppet-users/CANs%2BFoUQPSaNqYEGMywXfYFZKV2XLbmm%3DHw4v6j0YUf9SzuigQ%40mail.gmail.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *Join us at PuppetConf 2014 http://www.puppetconf.com/, September 20-24 in San Francisco* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK7%3D7BL2FR3r9c0DStOWpz2E8AG__%2BMq7humd14G0%3DOqEQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Announce: Puppet Server 0.2.0
On Fri, Sep 26, 2014 at 4:02 PM, Andy Parker a...@puppetlabs.com wrote: On Fri, Sep 26, 2014 at 1:30 PM, Felix Frank felix.fr...@alumni.tu-berlin.de wrote: On 09/26/2014 09:45 PM, Rob Reynolds wrote: Java just on server side. Native is moving towards C++. No wait, what, really? Felix, if your what? is about Java (the language), that was a mistake. JVM on the server side, generally written in Clojure, is the direction things are heading. C++ on the client side. Ruby is still sticking around in order to support extensions. That said, some things we'll need to discuss and figure out what the best way to move forward is. Luke wrote up a good post about some of these changes at http://puppetlabs.com/blog/evolving-puppet-for-next-ten-years As I said in my original response about apply, that is something that we still need to figure out and something that will be coming up on puppet-dev in the future. There is a lot to consider and discuss in that decision because of the number of people and systems affected. Yes, apologies about that. I meant JVM, generally written in Clojure. I was using language from the original statement from Trevor and should have been more clear. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/5425CCD6.8050703%40Alumni.TU-Berlin.de . For more options, visit https://groups.google.com/d/optout. -- Andrew Parker a...@puppetlabs.com Freenode: zaphod42 Twitter: @aparker42 Software Developer *Join us at **PuppetConf 2014, **September 20-24 in San Francisco - * www.puppetconf.com -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CANhgQXt7E%3Dw%2Bw4fhmvargeLdtDsdMvJ7CLFikKECBTiidZ-nYg%40mail.gmail.com https://groups.google.com/d/msgid/puppet-users/CANhgQXt7E%3Dw%2Bw4fhmvargeLdtDsdMvJ7CLFikKECBTiidZ-nYg%40mail.gmail.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *Join us at PuppetConf 2014 http://www.puppetconf.com/, September 20-24 in San Francisco* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK7vjiKdMTEWkcCz2bLx%3DjaNaYaFiUHY7RQ7-RLhGdR%2Bdg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Using Powershell in facters yields no data
On Thu, Sep 18, 2014 at 2:11 PM, Brian Morris nomadicextre...@gmail.com wrote: Hello all, I have been banging my head against this one for a couple of days. I am trying to use Powershell to comb the Windows registry for installed applications, such as VMware Tools, to create a custom facter. If I run this code from a PS prompt it works, and returns the expected data: PS C:\ Get-ChildItem hklm:\software\microsoft\windows\currentversion\uninstall | ForEach-Object {Get-ItemProperty $_.ps path} | Where-Object {$_.DisplayName -eq VMware Tools} | ForEach-Object -process {$_.DisplayVersion } *9.4.6.1770165* This is running in a 64bit process. However, running the same thing through Puppet as a facter yields zero data: -- Facter.add(vmtools_version) do confine :osfamily = Windows setcode do Facter::Util::Resolution.exec('C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command {Get-ChildItem hklm:\software\microsoft\windows\currentversion\uninstall | ForEach-Object {Get-ItemProperty $_.pspath} | Where-Object {$_.DisplayName -eq \VMware Tools\} | ForEach-Object -process {$_.DisplayVersion } } ') end end -- This is in a 32bit process unless you are on the newest 3.7.0 or 3.7.1 x64 builds of Puppet. You are hitting registry redirection. Be sure to checkout Common Gotchas[1] especially for how to turn off registry redirection in a 32 bit process. [1] http://puppetlabs.com/blog/how-avoid-common-windows-gotchas-puppet More detail: When a 32 bit process calls the registry and is subject to redirection, it only sees the Wow6432Node under software. Check out that link above, it explains quite a bit in more detail. The left side shows up in the facters as vmtools_version, but the right side is always empty. I have tried using the GetItem module instead, and tried various combinations of the -Command switch, removed the For-Each handler to see if would spit out a huge block of text, and even tried wrapping the whole thing in a try catch to see if any error states are generated, but have never gotten any right side output at all. Does anyone have an idea that might make this work? -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/a76b897f-9f1f-4e82-ab18-344ae9a6e2c7%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/a76b897f-9f1f-4e82-ab18-344ae9a6e2c7%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *Join us at PuppetConf 2014 http://www.puppetconf.com/, September 20-24 in San Francisco* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK5Ja%2B-4y-CEu%2BkO_rwQs2oQwM%2BTM%2BhU8wFA_AaT1BhP%3Dg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Using Powershell in facters yields no data
On Thu, Sep 18, 2014 at 3:54 PM, Rob Reynolds r...@puppetlabs.com wrote: On Thu, Sep 18, 2014 at 2:11 PM, Brian Morris nomadicextre...@gmail.com wrote: Hello all, I have been banging my head against this one for a couple of days. I am trying to use Powershell to comb the Windows registry for installed applications, such as VMware Tools, to create a custom facter. If I run this code from a PS prompt it works, and returns the expected data: PS C:\ Get-ChildItem hklm:\software\microsoft\windows\currentversion\uninstall | ForEach-Object {Get-ItemProperty $_.ps path} | Where-Object {$_.DisplayName -eq VMware Tools} | ForEach-Object -process {$_.DisplayVersion } *9.4.6.1770165* This is running in a 64bit process. However, running the same thing through Puppet as a facter yields zero data: -- Facter.add(vmtools_version) do confine :osfamily = Windows setcode do Facter::Util::Resolution.exec('C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command C:\Windows\System32 is also subject to File system redirection, which is also talked about in that post. Likely fixing only this as sysnative will return the right data because PowerShell will run in 64bit mode. But I would explore the ruby only way to speed up the fact. {Get-ChildItem hklm:\software\microsoft\windows\currentversion\uninstall | ForEach-Object {Get-ItemProperty $_.pspath} | Where-Object {$_.DisplayName -eq \VMware Tools\} | ForEach-Object -process {$_.DisplayVersion } } ') end end -- This is in a 32bit process unless you are on the newest 3.7.0 or 3.7.1 x64 builds of Puppet. You are hitting registry redirection. Be sure to checkout Common Gotchas[1] especially for how to turn off registry redirection in a 32 bit process. [1] http://puppetlabs.com/blog/how-avoid-common-windows-gotchas-puppet More detail: When a 32 bit process calls the registry and is subject to redirection, it only sees the Wow6432Node under software. Check out that link above, it explains quite a bit in more detail. The left side shows up in the facters as vmtools_version, but the right side is always empty. I have tried using the GetItem module instead, and tried various combinations of the -Command switch, removed the For-Each handler to see if would spit out a huge block of text, and even tried wrapping the whole thing in a try catch to see if any error states are generated, but have never gotten any right side output at all. Does anyone have an idea that might make this work? -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/a76b897f-9f1f-4e82-ab18-344ae9a6e2c7%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/a76b897f-9f1f-4e82-ab18-344ae9a6e2c7%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *Join us at PuppetConf 2014 http://www.puppetconf.com/, September 20-24 in San Francisco* -- Rob Reynolds Developer, Puppet Labs *Join us at PuppetConf 2014 http://www.puppetconf.com/, September 20-24 in San Francisco* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK7GNgWponY1y74bpQ5x_YPbRcPeK3%3DmsyBc-W2txDfQaQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] What do you use the 'group' attribute for when using the acl module?
On Tue, Sep 9, 2014 at 1:30 PM, Paul Chernoch pachern...@gmail.com wrote: The *acl *module has a parameter named '*group*' which takes a list of users, groups or SIDs. Just a small add on your wording here. Both the owner and group properties only take ONE of (1) a user, (2) a group, or (3) a SID. Is this confusing in the documentation? If so, is there a way we could update the documentation to make this more clear? What is it for? When would I need it? The documentation is fuzzy. This is what it says: Properties https://github.com/puppetlabs/puppetlabs-acl#groupgroup The entity or entities that have access to a particular ACL descriptor. The group identity is also known as a trustee or principal. Valid inputs can be in the form of: - User - e.g. 'Bob' or 'TheNet\Bob' - Group - e.g. 'Administrators' or 'BUILTIN\Administrators' - SID (Security ID) - e.g. 'S-1-5-18' No default value will be enforced by Puppet. Using the default will allow the group to stay set to whatever it is currently set to (group can vary depending on the original CREATOR GROUP). Since the identity must exist on the system in order to be used, Puppet will make sure they exist by creating them as needed. *NOTE*: On Windows the CREATOR GROUP inherited ACE must be set for the creator's primary group to be set as an ACE automatically. Group is not always widely used. By default the group will also need to be specifically set as an explicit managed ACE. See Microsoft's page http://support.microsoft.com/kb/126629 for instructions on enabling CREATOR GROUP. Paul -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/172c9ce0-bdd3-4f85-8fb5-c84a55d56fe5%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/172c9ce0-bdd3-4f85-8fb5-c84a55d56fe5%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *Join us at PuppetConf 2014 http://www.puppetconf.com/, September 20-24 in San Francisco* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK6EfcnL%2BNDAqt9eaHu83kVLpgPAr0XH-5PPYRubemKaZA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Re: New Powershell Desired Configuration Module
On Mon, Sep 15, 2014 at 1:48 PM, Rich Siegel rismo...@gmail.com wrote: This is so AWESOME!! +1! On Monday, September 15, 2014 5:19:12 AM UTC-4, Marc Sutter wrote: Hi all, Just wanted to let you know that I wrote a module for DSC. This is a big help to configure Windows 2008+ boxes. https://forge.puppetlabs.com/msutter/dsc Marc, Whoa... is that autogenerated types and providers? Cheers Marc -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/e94ca3fb-0268-4217-8d47-7d5273c7c004%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/e94ca3fb-0268-4217-8d47-7d5273c7c004%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *Join us at PuppetConf 2014 http://www.puppetconf.com/, September 20-24 in San Francisco* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK4_QqgAURHzZoBTAvUpZFZcikuhy3zpGVcbANP1fngvEw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Windows ACL - multiple account permission -Example
On Mon, Sep 8, 2014 at 11:12 AM, Helen Paterson helen.pater...@gmail.com wrote: Hi, I am trying to give multiple users modify access to a file. I can give one user access fine: acl { 'D:/Repositories': permissions = [ { identity = 'Administrators', rights = ['full'] }, { identity = 'Users', rights = ['read','execute'] }, { identity = 'Ecommerce Admins',rights = ['modify'] }, ], } However adding multiple users , causes puppet to change the file permissions over and over again. acl { 'D:/Repositories': permissions = [ { identity = 'Administrators',rights = ['full'] }, { identity = 'Users', rights = ['read','execute'] }, { identity = 'Ecommerce Admins', rights = ['modify'] }, identity = 'Ecommerce Operators', rights = ['modify'] }, identity = 'admweb-sa-test',rights = ['modify'] }, identity = 'tc-service-account', rights = ['modify'] }, ], } I'm going to guess you meant to set this as: acl { 'D:/Repositories': permissions = [ { identity = 'Administrators',rights = ['full'] }, { identity = 'Users', rights = ['read','execute'] }, { identity = 'Ecommerce Admins', rights = ['modify'] }, *{* identity = 'Ecommerce Operators', rights = ['modify'] }, *{* identity = 'admweb-sa-test',rights = ['modify'] }, *{* identity = 'tc-service-account', rights = ['modify'] }, ], } and proceed as if it was specified that way. Specified this way it should work just fine. However you are running into something weird. To understand what may be going on though, we'll need the output of your run: 'puppet apply --debug --verbose --trace path\to\thismanifest.pp' What version of the module you have installed and what version of puppet you are trying to execute from. I have tried an array but it expects a string and i have tried acl { 'D:/Repositories': permissions = [ { identity = 'Administrators', rights = ['full'] }, { identity = 'Users', rights = ['read','execute'] }, { identity = 'Ecommerce Admins', identity = 'Ecommerce Operators', identity = 'admweb-sa-test', identity = 'tc-service-account', rights = ['modify'] }, ], } This is not likely to ever work. The acl module simply isn't designed in a way for you to pass in multiple identities with one set of rights. You should pass each identity with its own set of rights, even if they are the same. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/3a989c7e-48b2-41a9-b2fe-6f48d6785655%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/3a989c7e-48b2-41a9-b2fe-6f48d6785655%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *Join us at PuppetConf 2014 http://www.puppetconf.com/, September 20-24 in San Francisco* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK4SnaAdpnGDvq%3D99iB3FD_nj0WV2mLwdKeTmR0FbMN9xw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] windows mount points
On Mon, Sep 1, 2014 at 12:00 PM, Benjamin Priestman benja...@miniverse.me.uk wrote: Hi, On windows hosts, I've taken to putting all my app data in c:\srv, mimicing the /srv location on Linux. Depending on the host, this may be a location on the system drive, or it is sometimes an additional disk mounted at that location. In the latter case, `puppet resource file ` shows this as a link whose target is the underlying volume. An attempt to define a file resource within this location fails with: 'Parent directory C:/srv does not exist' If I create subdirectories here by hand, the puppet run proceeds just fine. Has anyone else come across this behavior? I'm running puppet 3.4.2 at the moment. Happy to upgrade but I can't find any big reports that indicate this is a known issue. We've had a similar issue when trying to copy files from non-NTFS volumes, but perhaps the underlying bug also affected file resources in those mounted folders. See PUP-1450[1] (also PUP-1368[2] and PUP-1389[3]) as it could have could have been linked to what you are seeing currently. [1] https://tickets.puppetlabs.com/browse/PUP-1450 [2] https://tickets.puppetlabs.com/browse/PUP-1368 [3] https://tickets.puppetlabs.com/browse/PUP-1389 -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/bc4867e4-4bf6-44a8-900c-1690512db21e%40googlegroups.com . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *Join us at PuppetConf 2014 http://www.puppetconf.com/, September 20-24 in San Francisco* *Register by September 8th to take advantage of the Final Countdown https://www.eventbrite.com/e/puppetconf-2014-tickets-7666774529?discount=FinalCountdown * *--**save $149!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK4%3D%3Do_fKmmTbAHO_%3D%2BKYVUaPiwrpMU-VLrELT5Gb%3DJ90g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Permission problems on Windows
On Mon, Sep 1, 2014 at 12:35 PM, Armindo Silva deathon2l...@gmail.com wrote: Hi, I have a zip file that has some binaries inside, if I unzip it (with 7z) manually and try to run one of the binaries and it just works, if I unzip it using puppet agent: exec { 'eMZP': command = 'cmd /c 7z x c:\myfolder\my.zip -oc:\myfolder\', creates = 'c:/myfolder/mybin.exe', require = File['c:/myfolder/my.zip'], } the unziped files don't have exec permissions so I am not able to run them. This is likely due to how Puppet does not inherit permissions down to the folder from the folder above. I thought we had fixed that in a newer version of Puppet though. What version of Puppet are you running on the box(es) in question? As workaround I have been setting the folder's mode but setting the mode on windows is deprecated. Deprecated, but still usable. The replacement is the acl module[1]. [1] https://forge.puppetlabs.com/puppetlabs/acl Any ideas/pointers? Best regards, Armindo -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/32d3a423-9307-4beb-b423-7ff9f0d35b77%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/32d3a423-9307-4beb-b423-7ff9f0d35b77%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *Join us at PuppetConf 2014 http://www.puppetconf.com/, September 20-24 in San Francisco* *Register by September 8th to take advantage of the Final Countdown https://www.eventbrite.com/e/puppetconf-2014-tickets-7666774529?discount=FinalCountdown * *--**save $149!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK4c1MXDZf_KH%2Bh1%2BfOipfKLpCtaSEF3mT1e%3DF7hsPHRqQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Puppet Enterprise runonce fails but regularly scheduled agent run succeeds
On Fri, Aug 29, 2014 at 4:03 PM, Paul Chernoch pachern...@gmail.com wrote: The node is a Windows 2008R2 box. I am attempting to fetch files from Team Foundation Server using an exec resource and the command line program TF.EXE. When I process the catalog using the regularly scheduled puppet run, it completes successfully. When I use Live Management Control Puppet runonce I get errors. I do not fill in any parameters in the dialog. In the puppet log, I see this message repeated for each file I try to fetch: TF30063: You are not authorized to access http:// OUR-WEBSITE-NAME.com:8080/tfs/OUR-COLLECTION-NAME. This seems to indicate that TF.EXE authentication prevented the operation. My initial runs relied upon the currently-logged-in-user's credentials. We gave proper rights to the user account assigned to puppet and this used to work before some recent changes. I decided to hardcode my personal user name and password to see if that would work. It continues to work for the regularly scheduled agent run, and continues to fail for the runonce run. Run once user is likely determined by the MCO service user and not the Puppet Agent service user. Please ensure you also add that user to the authorized list. Here is an example of a command that my EXEC resource is trying to execute: TF.exe view /collection:http://OUR-TFS-HOST.com:8080/tfs/PhoenixCollection /output:c:\phx_deployer\staging\phoenix\2.60.1.87\PaymentPlan.Services.Web.zip $\ReleasePackages\PhoenixReleasePackages\PaymentPlan.Services.Web.zip /login:MY-USERNAME,MY-PASSWORD /version:L2.60.1.87 The exec resource of course sets the current directory to be the location of TF.EXE and its DLLs. Here is the flavor of the exec resource: exec { tf view ${filename} /version:${versionspec}: command = $tfview_cmd, path = $exec_path, cwd = $tf_dir_unix, onlyif = $tfhistory_cmd, require = Class['tfview::tfcomponents'] } The *onlyif *command invokes a ruby script that itself calls TF.EXE HISTORY to see if the file has changed in TFS and needs to be checked out again. That script is coded so that if an exception is thrown by TF.EXE, it will return zero, and indicate that TF VIEW must be called to fetch a new copy of the file. Any ideas? Paul Chernoch Lead Software Engineer EF Education First Cambridge, MA -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/93762f3f-53cd-4431-928d-5c281418af9f%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/93762f3f-53cd-4431-928d-5c281418af9f%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *Join us at PuppetConf 2014 http://www.puppetconf.com/, September 20-24 in San Francisco* *Register by September 8th to take advantage of the Final Countdown https://www.eventbrite.com/e/puppetconf-2014-tickets-7666774529?discount=FinalCountdown * *--**save $149!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK4Kck%3DJQ4SWcbr_6bBUs9LkGEg4ux8iKQsdpAt7MMRqgA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Puppet on Windows running in no daemon mode...how to handle required reboots?
On Fri, Aug 22, 2014 at 10:38 AM, Charlie Baum charlieb...@gmail.com wrote: Running Puppet on Windows 2008r2 and 2012 in no daemon mode for a few applications. Issue we are having is some tools/apps such as .net 4.5 and some MSI files we are installing require a reboot. In no daemon mode, when the system reboots and comes back up the puppet recipe doesn't continue where it left off, so you have to run the puppet command again to kick it off. If there's a couple reboots, there are multiple interactions here. If this is on 10 systems, it's a little ridiculous. Any idea how we can get around this? How we can get the recipe to pick up where it left off? Can't seem to find anything out there related to this issue. Puppet does need to be kicked back off. The agent runs when the system is booted, so it just picks back up and starts processing puppet again (the whole idempotent catalog, the net affect is that it picks up where it left off). To achieve the same with a no daemon mode you need to set up something to make puppet apply run when the box is first booted. The least fancy way is to just set up a script to run when the box is first turned on. The harder part is getting it to work without having to login. A scheduled task could achieve this with the trigger At startup[1]. Be aware that networking may or may not be available yet. Note that while at startup is a valid trigger and it is in the win32-taskscheduler[2] gem version that we use, it will likely not work with the scheduled_task resource[3] without changes to validation of win32_taskscheduler[4] and other areas to allow for at_startup to be considered a valid trigger schedule value. [1] http://technet.microsoft.com/en-us/library/cc748841.aspx [2] https://github.com/djberg96/win32-taskscheduler/blob/win32-taskscheduler-0.2.2/lib/win32/taskscheduler.rb#L110 [3] https://docs.puppetlabs.com/references/3.6.latest/type.html#scheduled_task-attribute-trigger [4] https://github.com/puppetlabs/puppet/blob/3.6.2/lib/puppet/provider/scheduled_task/win32_taskscheduler.rb#L347-L348 -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/1bdf4074-61a7-4a1f-892e-61f2f75b74f1%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/1bdf4074-61a7-4a1f-892e-61f2f75b74f1%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *Join us at PuppetConf 2014 http://www.puppetconf.com/, September 20-24 in San Francisco* *Register by September 8th to take advantage of the Final Countdown https://www.eventbrite.com/e/puppetconf-2014-tickets-7666774529?discount=FinalCountdown * *--**save $149!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK5mRFUh3zwDXcymBRpZcExL%3DYNgZHNszLPBYJ8DLY5c%3DA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Re: Remove java from path - Windows
On Mon, Aug 18, 2014 at 6:24 PM, badgerious badge...@hotmail.com wrote: On Monday, August 18, 2014 10:51:35 AM UTC-5, Rob Reynolds wrote: This works great as long as the registry key is of type REG_EXPAND_SZ[1] value, but the key for Path[2] is set to REG_SZ. Interesting; all the systems I looked at were REG_EXPAND_SZ. It looks like if you insert a %variable% via the GUI, Windows will change it from REG_SZ to REG_EXPAND_SZ for you (and back again if you remove all the %variables%). Interesting, I didn't realize that. :) I wonder if the windows_env puppet module should do that? I've done the %variable% in path before without issue and did a quick test before posting, but some further curiosity fueling googling suggests there may be gotchas that I was not previously aware of. To the OP: I'd be interested to hear if you have any such issues. Eric -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/46ffe10b-d5f3-4d01-ab1f-86208de831ee%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/46ffe10b-d5f3-4d01-ab1f-86208de831ee%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *Join us at PuppetConf 2014 http://www.puppetconf.com/, September 20-24 in San Francisco* *Register by September 8th to take advantage of the Final Countdown https://www.eventbrite.com/e/puppetconf-2014-tickets-7666774529?discount=FinalCountdown * *--**save $149!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK52%3DvcoY44RtDrpv6pYw-E9-KSCB-BaUfHZif2_m%3DOc7w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Re: scheduled_task changes on every puppet run
On Wed, Aug 13, 2014 at 12:55 PM, aaronm publicmai...@gmail.com wrote: I am getting similar logs every day, but I am not using any scheduled tasks in my manifests... (**this is on PE 3.3 installed a week or two ago**) trigger changed '{'every' = '1', 'schedule' = 'daily', 'start_date' = '2014-8-12', 'start_time' = '13:00'}' to '[{'every' = '1', 'schedule' = 'daily', 'start_time' = '13:00'}]' /Stage[main]/Pe_mcollective::Server/Scheduled_task[pe-mcollective-metadata]/trigger /opt/puppet/share/puppet/modules/pe_mcollective/manifests/server.pp --- (**this is from a longrunning PE server running 3.2 installed many months ago**) trigger changed '{'every' = '1', 'schedule' = 'daily', 'start_date' = '2014-8-12', 'start_time' = '13:00'}' to '[{'every' = '1', 'schedule' = 'daily', 'start_time' = '13:00'}]' /Stage[main]/Pe_mcollective::Server/Scheduled_task[pe-mcollective-metadata]/trigger /opt/puppet/share/puppet/modules/pe_mcollective/manifests/server.pp The PE catalog includes a scheduled task. Would you mind following up on the pe-users group? On Thursday, August 7, 2014 7:36:18 AM UTC-4, cko wrote: Hi, I'm using the following scheduled_task on one of my windows server 2008 r2 boxes: scheduled_task { 'reboot': command = 'C:\WINDOWS\System32\shutdown.exe', arguments = -r -f -t 01, user = 'SYSTEM', trigger = { schedule= weekly, start_time = '06:00', every = 1, day_of_week = sun, } } Puppet creates the task and works just fine. However, on every single puppet run the trigger changes (even though I didn't change the puppet code). The report shows the following output: *Notice: /Stage[main]/Main/Node[NODE]/Scheduled_task[reboot]/trigger: trigger changed '{'every' = '1', 'on' = ['sun'], 'schedule' = 'weekly', 'start_date' = '2014-8-7', 'start_time' = '06:00'}' to '[{'day_of_week' = ['sun'], ' every' = '1', 'schedule' = 'weekly', 'start_time' = '06:00'}]' Notice: Finished catalog run in 6.55 seconds* Is there anything I can do to achieve idempotence with this scheduled task? -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/e7823a79-676c-4c6e-a985-378d264e91f0%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/e7823a79-676c-4c6e-a985-378d264e91f0%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Rob Reynolds Developer, Puppet Labs *Join us at PuppetConf 2014 http://www.puppetconf.com/, September 20-24 in San Francisco* *Register by September 8th to take advantage of the Final Countdown https://www.eventbrite.com/e/puppetconf-2014-tickets-7666774529?discount=FinalCountdown * *--**save $149!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK7Qhv3dfBCGi8Va9%2Bo07oC0s-EiJw-e_o%3DFvERAQtvWdQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.