[Puppet Users] Re: Could not retrieve local facts: undefined method `require_relative' for main:Object
thank you I see that this only fails on my Ubuntu 12 servers with ruby 1.8 and is fine on Ubuntu 14 ruby 1.9. i believe this happened after a college upgraded stlib On Wednesday, May 17, 2017 at 3:34:01 PM UTC+1, Helen Paterson wrote: > > Hi, > > im currently getting the following error on a few of my Ubuntu solr servers > > Error: Could not retrieve local facts: undefined method `require_relative' > for main:Object > Error: Failed to apply catalog: Could not retrieve local facts: undefined > method `require_relative' for main:Object > > > we are running puppet agent 3.8 , im not sure how to debug ??? > > > Thanks > > Helen > -- 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/2147a9a2-16f7-483a-aee6-0b8bf5e423d4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] Could not retrieve local facts: undefined method `require_relative' for main:Object
Hi, im currently getting the following error on a few of my Ubuntu solr servers Error: Could not retrieve local facts: undefined method `require_relative' for main:Object Error: Failed to apply catalog: Could not retrieve local facts: undefined method `require_relative' for main:Object we are running puppet agent 3.8 , im not sure how to debug ??? Thanks Helen -- 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/a31aae49-3109-410a-b0e6-e588131dea6f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] how do i get $title from the hiera array
I would like to get the hiera array title only, i.e i'd like to lookup * Admin*, Public,Assets without the ip_address returning aswell? iis::sites: * 'Admin':* ip_address: '10.21.40.18' #host_header: 'www.internalapi.co.uk' 'Public': ip_address: '10.21.41.18' 'Assets': ip_address: '10.21.42.18' I'm currently trying $sites = hiera_hash('coldfusion_v11::sites') $site = $sites [$name] This works to pull back only the ip address, but i need the title $sites = hiera_hash('coldfusion_v11::sites') $site = $sites [$ip_address] -- 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/defdde4a-dc38-4d46-9f93-fea29ee6692a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] hiera and puppet environments ( directory)
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/220c601e-b537-4d9b-b0d9-3c94bb6d68e7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] Bug #15326] (Accepted) Scheduled_task does not accept domain user accounts
Hi, When i add the user attribute to Scheduled_task, the scheduled task is not created, but if i comment out the user attribute the scheduled task is created running as system. This doesn't seem to work scheduled_task { 'CopyCF11ReposFromDR': ensure = present, enabled= true, command = 'D:\bin\Schedules\CopyCF11ReposFromDR.bat', working_dir = 'D:\bin\Schedules', user = 'MYDOMAIN\puppet-user', arguments= ' D:\bin\Schedules\CopyCF11ReposFromDR_LOG.txt', require = File['D:\bin\Schedules\CopyCF11ReposFromDR.bat'] } I am using puppet master version 3.7.4 and windows agent version 3.7.4 on Windows server 2012 R2. I see this bug has been reported as fixed https://projects.puppetlabs.com/issues/15326 -- 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/17b6bf14-5a4a-4122-96fa-40703ab7c916%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Bug #15326] (Accepted) Scheduled_task does not accept domain user accounts
thank you, completely missed it. On Tuesday, February 24, 2015 at 3:06:34 PM UTC, Josh Cooper wrote: On Tuesday, February 24, 2015, Helen Paterson helen.p...@gmail.com javascript: wrote: Hi, When i add the user attribute to Scheduled_task, the scheduled task is not created, but if i comment out the user attribute the scheduled task is created running as system. This doesn't seem to work scheduled_task { 'CopyCF11ReposFromDR': ensure = present, enabled= true, command = 'D:\bin\Schedules\CopyCF11ReposFromDR.bat', working_dir = 'D:\bin\Schedules', user = 'MYDOMAIN\puppet-user', arguments= ' D:\bin\Schedules\CopyCF11ReposFromDR_LOG.txt', require = File['D:\bin\Schedules\CopyCF11ReposFromDR.bat'] } You'll need to specify the puppet-user's password if you don't use the LocalSystem account. I am using puppet master version 3.7.4 and windows agent version 3.7.4 on Windows server 2012 R2. I see this bug has been reported as fixed https://projects.puppetlabs.com/issues/15326 -- 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/17b6bf14-5a4a-4122-96fa-40703ab7c916%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/17b6bf14-5a4a-4122-96fa-40703ab7c916%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Josh Cooper 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/3b0f1ac1-e6d0-4ea6-a26a-cb661590e83c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] run code in a new puppet agent window (windows server)
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 ? (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. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] puppet cloud provisioner - without enterprise -Error: Unknown Puppet subcommand 'node_aws'
Hi, I upgrade to ubuntu 14 to resolve the ruby error and then managed to install fog , but i still cannot connect to AWS Error: Could not autoload puppet/face/node_aws/create: cannot load such file -- fog Error: Could not parse application options: Could not autoload puppet/face/node_aws/create: cannot load such file -- fog gem versions bigdecimal (1.2.4) builder (3.2.2) excon (0.44.0) fog-core (1.28.0) fog-json (1.0.0) formatador (0.2.5) guid (0.1.1) hash-deep-merge (0.1.1) io-console (0.4.2) json (1.8.1) mime-types (2.4.3) mini_portile (0.6.2) minitest (4.7.5) multi_json (1.10.1) net-scp (1.2.1) net-ssh (2.9.3.beta1) psych (2.0.5) rack (1.5.2) rake (10.1.0) rdoc (4.1.0) ruby-shadow (2.3.4) test-unit (2.1.2.0) On Thursday, January 22, 2015 at 11:16:46 PM UTC, Matthaus Litteken wrote: Helen, What does `head -n1 /usr/bin/gem` show? Gem may be running /usr/bin/ruby1.8 under the hood, which would explain the ruby version error you're seeing. On Thu, Jan 22, 2015 at 5:20 AM, Helen Paterson helen.p...@gmail.com javascript: wrote: Hi, Has anyone had any luck getting the puppet cloud provisioner without the Puppet enterprise ( open source) ? 1. installed puppet module install puppetlabs-cloud_provisioner (from the forge) 2. sudo apt-get install ruby1.9.3 rubygems1.9.1 sudo ln -sf /usr/bin/ruby1.9.3 /usr/bin/ruby ( as on on ubuntu 10 and ruby 1.8) 3. gem install guid 4. gem install fog with the error ERROR: Error installing fog: mime-types requires Ruby version = 1.9.2. (even though the ruby version is no 1.9.3) 5. touch ~/.fog The error I get all along is Error: Unknown Puppet subcommand 'node_vmware' Error: Unknown Puppet subcommand 'node_aws' Regards Helen -- 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 javascript:. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/06dc8a2a-9585-425a-88e3-4a6c8f65e988%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Matthaus Owens 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/0c3876d0-baf6-486a-94f7-9aaa80ebf175%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] puppet cloud provisioner - without enterprise -Error: Unknown Puppet subcommand 'node_aws'
I manage to get the puppet cloud provisioner working for AWS by: 1. Using ubuntu 14 2. Down loading the module from the forge https://forge.puppetlabs.com/puppetlabs/cloud_provisioner 3. creating the fog file https://docs.puppetlabs.com/pe/latest/cloudprovisioner_configuring.htm https://docs.puppetlabs.com/pe/latest/cloudprovisioner_configuring.htmll 4. gem install guid 5. apt-get install ruby-fog (didn't need gem install fog) On Monday, February 2, 2015 at 12:59:48 PM UTC, Helen Paterson wrote: Hi, I upgrade to ubuntu 14 to resolve the ruby error and then managed to install fog , but i still cannot connect to AWS Error: Could not autoload puppet/face/node_aws/create: cannot load such file -- fog Error: Could not parse application options: Could not autoload puppet/face/node_aws/create: cannot load such file -- fog gem versions bigdecimal (1.2.4) builder (3.2.2) excon (0.44.0) fog-core (1.28.0) fog-json (1.0.0) formatador (0.2.5) guid (0.1.1) hash-deep-merge (0.1.1) io-console (0.4.2) json (1.8.1) mime-types (2.4.3) mini_portile (0.6.2) minitest (4.7.5) multi_json (1.10.1) net-scp (1.2.1) net-ssh (2.9.3.beta1) psych (2.0.5) rack (1.5.2) rake (10.1.0) rdoc (4.1.0) ruby-shadow (2.3.4) test-unit (2.1.2.0) On Thursday, January 22, 2015 at 11:16:46 PM UTC, Matthaus Litteken wrote: Helen, What does `head -n1 /usr/bin/gem` show? Gem may be running /usr/bin/ruby1.8 under the hood, which would explain the ruby version error you're seeing. On Thu, Jan 22, 2015 at 5:20 AM, Helen Paterson helen.p...@gmail.com wrote: Hi, Has anyone had any luck getting the puppet cloud provisioner without the Puppet enterprise ( open source) ? 1. installed puppet module install puppetlabs-cloud_provisioner (from the forge) 2. sudo apt-get install ruby1.9.3 rubygems1.9.1 sudo ln -sf /usr/bin/ruby1.9.3 /usr/bin/ruby ( as on on ubuntu 10 and ruby 1.8) 3. gem install guid 4. gem install fog with the error ERROR: Error installing fog: mime-types requires Ruby version = 1.9.2. (even though the ruby version is no 1.9.3) 5. touch ~/.fog The error I get all along is Error: Unknown Puppet subcommand 'node_vmware' Error: Unknown Puppet subcommand 'node_aws' Regards Helen -- 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/06dc8a2a-9585-425a-88e3-4a6c8f65e988%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Matthaus Owens 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/bedbc733-3ff5-4262-9794-320743f3fabb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] puppet cloud provisioner - without enterprise -Error: Unknown Puppet subcommand 'node_aws'
Hi, Has anyone had any luck getting the puppet cloud provisioner without the Puppet enterprise ( open source) ? 1. installed puppet module install puppetlabs-cloud_provisioner (from the forge) 2. sudo apt-get install ruby1.9.3 rubygems1.9.1 sudo ln -sf /usr/bin/ruby1.9.3 /usr/bin/ruby ( as on on ubuntu 10 and ruby 1.8) 3. gem install guid 4. gem install fog with the error ERROR: Error installing fog: mime-types requires Ruby version = 1.9.2. (even though the ruby version is no 1.9.3) 5. touch ~/.fog The error I get all along is Error: Unknown Puppet subcommand 'node_vmware' Error: Unknown Puppet subcommand 'node_aws' Regards Helen -- 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/06dc8a2a-9585-425a-88e3-4a6c8f65e988%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] hiera lookup , extract one element
Thank you so much for this reply and thank you for the detailed example. ( I am using deep merge aswell ) On Wednesday, November 26, 2014 10:54:26 AM UTC, Felix.Frank wrote: Hi, please note that create_resources('iis::manage_site', hiera_hash('iis::sites', [])) is not the most atomic way of looking up hiera data at all. You could do the same thing like this: $sites = hiera('iis::sites', {}) create_resources('iis::manage_site', $sites) This gives you the advantage of being able to just work with the $sites hash as well. $addr_web1 = $sites['myweb1']['ip_address'] Further notes: 1. Don't pass [] as the default value for a hash lookup. Use {}. 2. Use hiera_hash() only if you need to merge hash data from all hierarchy layers. HTH, Felix On 11/25/2014 05:59 PM, Helen Paterson wrote: Hi, I have the following hiera data in the node definition. I can lookup all the data create_resources('iis::manage_site', hiera_hash('iis::sites', [])) . iis::sites: 'myweb1': site_path: 'D:\Repositories\myweb1\wwwroot' port: '80' ip_address: '192.168.33.21' app_pool: 'ColdFusion' 'myweb2': site_path: 'D:\Repositories\myweb2\wwwroot' port: '81' ip_address: '192.168.33.22' app_pool: 'ColdFusion' But how do i just extract the ip_address ? Regards Helen -- 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/32818e39-7d27-4c8e-8ced-bd4573838476%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] hiera lookup , extract one element
Hi, I have the following hiera data in the node definition. I can lookup all the data create_resources('iis::manage_site', hiera_hash('iis::sites', [])) . iis::sites: 'myweb1': site_path: 'D:\Repositories\myweb1\wwwroot' port: '80' ip_address: '192.168.33.21' app_pool: 'ColdFusion' 'myweb2': site_path: 'D:\Repositories\myweb2\wwwroot' port: '81' ip_address: '192.168.33.22' app_pool: 'ColdFusion' But how do i just extract the ip_address ? Regards Helen -- 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/6668e957-e787-4e2e-85cd-3a367d45b1c5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] Windows ACL - multiple account permission -Example
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 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'] }, ], } -- 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. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] Re: Permission problems on Windows
You could try if $osfamily == 'windows' { File { source_permissions = ignore } # Puppet defaults to applying the ownership and permissions from the source files.(linux permission) } On Monday, September 1, 2014 6:35:47 PM UTC+1, Armindo Silva 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. As workaround I have been setting the folder's mode but setting the mode on windows is deprecated. 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/a75a6963-6116-4d2f-afde-0cb99c352ac3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] windows groups - append
Hi, The windows agent is running puppet 3.4.2. Thanks for letting me know, its a known issue On Monday, August 11, 2014 9:18:14 PM UTC+1, Rob Reynolds wrote: On Mon, Aug 11, 2014 at 3:01 AM, Helen Paterson helen.p...@gmail.com javascript: wrote: Hi, I would like puppet to add additional users to the administrators group, however it currently replaces the membership ( removing existing users). How can i change this ? class win_local_admin { group { 'Administrators': ensure = present, members = ['Administrator', 'domain\tc-service-account', 'domain\Developers', 'domain\puppet-sa-test',], attribute_membership = minimum; } It appears that PUP-2628[1] is what you are currently experiencing? What version of Puppet are you using on the windows agent(s) in question? [1]: https://tickets.puppetlabs.com/browse/PUP-2628 -- 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 javascript:. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/7beb168a-e194-4076-ab47-c941506148c1%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/7beb168a-e194-4076-ab47-c941506148c1%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/b1d01b0c-f893-4d33-ba0e-d4b68e013e1e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] file_line match with spaces
Hi, I cannot get the regex to work in puppet for file_line it work in a regex tool file_line { applicationHost.config: ensure = 'present', path= 'c:/windows/sysnative/inetsrv/config/applicationHost.config', match = '\s{1,12}add name=Public .*', line= 'add name=Public autoStart=true startMode=AlwaysRunning managedRuntimeVersion=v4.0', however below works if i remove spaces from the file for testing file_line { applicationHost.config: ensure = 'present', path= 'c:/windows/sysnative/inetsrv/config/applicationHost.config', match = 'add name=Public .*', line= 'add name=Public autoStart=true startMode=AlwaysRunning managedRuntimeVersion=v4.0', the file has 12 spaces in front of the text. -- 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/3f4376c4-d0aa-4c73-9364-1e64483f944c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] windows groups - append
Hi, I would like puppet to add additional users to the administrators group, however it currently replaces the membership ( removing existing users). How can i change this ? class win_local_admin { group { 'Administrators': ensure = present, members = ['Administrator', 'domain\tc-service-account', 'domain\Developers', 'domain\puppet-sa-test',], attribute_membership = minimum; } -- 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/7beb168a-e194-4076-ab47-c941506148c1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] puppet dism
It seems that you should be using the switch /Featurename OR /Apply-Unattend NOT both, yet the puppet example is dism { 'IIS-WebServer': ensure = present, answer = 'C:\answer\iis.xml', } https://forge.puppetlabs.com/puppetlabs/dism I can see how to use this puppet module with the answer file, so i am going to try: dism { 'NetFx3': ensure = present, } dism { 'IIS-WebServer': ensure = present, etc. On Friday, May 2, 2014 6:51:51 PM UTC+1, Rob Reynolds wrote: Can you verify /Apply-Unattend is a proper switch for that particular feature? The error you are getting indicates it should not be used. On Fri, May 2, 2014 at 10:26 AM, Helen Paterson helen.p...@gmail.comjavascript: wrote: Hi, I'm getting the below error, when using an answer file with the forge puppet dism module Error: Execution of 'C:\Windows\sysnative\Dism.exe /online /Enable-Feature /Fea ureName:IIS-WebServerRole /Apply-Unattend:c:\answer\iis_net.xml /NoRestart' ret rned 87: Deployment Image Servicing and Management tool Version: 6.1.7600.16385 Image Version: 6.1.7600.16385 Error: 87 The apply-unattend option is not recognized in this context. For more information, refer to the help. *This is my module* * class win7roles { require win7roles::params file { $win7roles::params::answer: ensure = directory, recurse = true, source = puppet:///modules/win7roles/answer, force = true, #copy files from puppet module to the local folder created above } dism { 'IIS-WebServerRole': ensure = present, answer = ${win7roles::params::answer}\\iis_net.xml, require = File[${win7roles::params::answer}],#answer file create with windows system image manager(windows AIK) windows 7 iso} } class win7roles::params { $answer =c:\\answer} * -- 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 javascript:. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/36c555a6-4c93-42f5-adba-416ddbaa715c%40googlegroups.comhttps://groups.google.com/d/msgid/puppet-users/36c555a6-4c93-42f5-adba-416ddbaa715c%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://puppetconf.com**, September 23-24 in San Francisco* *Register by May 30th to take advantage of the Early Adopter discount http://links.puppetlabs.com/puppetconf-early-adopter **—**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/40258a43-89fe-48d4-a7f1-ca590a0c8492%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] puppet dism
I didn't get the answer file working but this works instead class windowsfeaturedesktop::iis { dism { 'IIS-WebServerRole': ensure = present, } dism { 'IIS-WebServer': ensure = present, require = Dism['IIS-WebServerRole'], } dism { 'IIS-CommonHttpFeatures': ensure = present, require = Dism['IIS-WebServerRole'], } dism { 'IIS-StaticContent': ensure = present, require = Dism['IIS-CommonHttpFeatures'], } dism { 'IIS-DefaultDocument': ensure = present, require = Dism['IIS-CommonHttpFeatures'], } dism { 'IIS-HttpErrors': ensure = present, require = Dism['IIS-CommonHttpFeatures'], } dism { 'IIS-ApplicationDevelopment': ensure = present, require = Dism['IIS-WebServerRole'], } dism { 'IIS-NetFxExtensibility': ensure = present, require = Dism['IIS-ApplicationDevelopment'], } dism { 'IIS-ISAPIExtensions': ensure = present, require = Dism['IIS-ApplicationDevelopment'], } dism { 'IIS-ISAPIFilter': ensure = present, require = Dism['IIS-ApplicationDevelopment'], } dism { 'IIS-ASPNET': ensure = present, require = Dism['IIS-ISAPIExtensions','IIS-ISAPIFilter'], } dism { 'IIS-Security': ensure = present, require = Dism['IIS-WebServerRole'], } dism { 'IIS-WindowsAuthentication': ensure = present, require = Dism['IIS-Security'], } dism { 'IIS-RequestFiltering': ensure = present, require = Dism['IIS-Security'], } dism { 'IIS-Performance': ensure = present, require = Dism['IIS-WebServerRole'], } dism { 'IIS-HttpCompressionDynamic': ensure = present, require = Dism['IIS-Performance'], } dism { 'IIS-HttpCompressionStatic': ensure = present, require = Dism['IIS-Performance'], } dism { 'IIS-HealthAndDiagnostics': ensure = present, require = Dism['IIS-WebServerRole'], } dism { 'IIS-CustomLogging': ensure = present, require = Dism['IIS-HealthAndDiagnostics'], } dism { 'IIS-HttpLogging': ensure = present, require = Dism['IIS-HealthAndDiagnostics'], } dism { 'IIS-RequestMonitor': ensure = present, require = Dism['IIS-HealthAndDiagnostics'], } dism { 'IIS-WebServerManagementTools': ensure = present, require = Dism['IIS-WebServer'], } dism { 'IIS-ManagementConsole': ensure = present, require = Dism['IIS-WebServerManagementTools'], } dism { 'IIS-ManagementScriptingTools': ensure = present, require = Dism['IIS-WebServerManagementTools'], } dism { 'IIS-ManagementService': ensure = present, require = Dism['IIS-WebServerManagementTools'], } } On Tuesday, May 6, 2014 9:27:52 AM UTC+1, Helen Paterson wrote: It seems that you should be using the switch /Featurename OR /Apply-Unattend NOT both, yet the puppet example is dism { 'IIS-WebServer': ensure = present, answer = 'C:\answer\iis.xml', } https://forge.puppetlabs.com/puppetlabs/dism I can see how to use this puppet module with the answer file, so i am going to try: dism { 'NetFx3': ensure = present, } dism { 'IIS-WebServer': ensure = present, etc. On Friday, May 2, 2014 6:51:51 PM UTC+1, Rob Reynolds wrote: Can you verify /Apply-Unattend is a proper switch for that particular feature? The error you are getting indicates it should not be used. On Fri, May 2, 2014 at 10:26 AM, Helen Paterson helen.p...@gmail.comwrote: Hi, I'm getting the below error, when using an answer file with the forge puppet dism module Error: Execution of 'C:\Windows\sysnative\Dism.exe /online /Enable-Feature /Fea ureName:IIS-WebServerRole /Apply-Unattend:c:\answer\iis_net.xml /NoRestart' ret rned 87: Deployment Image Servicing and Management tool Version: 6.1.7600.16385 Image Version: 6.1.7600.16385 Error: 87 The apply-unattend option is not recognized in this context. For more information, refer to the help. *This is my module* * class win7roles { require win7roles::params file { $win7roles::params::answer: ensure = directory, recurse = true, source = puppet:///modules/win7roles/answer, force = true, #copy files from puppet module to the local folder created above } dism { 'IIS-WebServerRole': ensure = present, answer = ${win7roles::params::answer}\\iis_net.xml, require = File[${win7roles::params::answer}],#answer file create with windows system image manager(windows AIK) windows 7 iso} } class win7roles::params { $answer =c:\\answer} * -- 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
[Puppet Users] puppet dism
Hi, I'm getting the below error, when using an answer file with the forge puppet dism module Error: Execution of 'C:\Windows\sysnative\Dism.exe /online /Enable-Feature /Fea ureName:IIS-WebServerRole /Apply-Unattend:c:\answer\iis_net.xml /NoRestart' ret rned 87: Deployment Image Servicing and Management tool Version: 6.1.7600.16385 Image Version: 6.1.7600.16385 Error: 87 The apply-unattend option is not recognized in this context. For more information, refer to the help. *This is my module* *class win7roles { require win7roles::params file { $win7roles::params::answer: ensure = directory, recurse = true, source = puppet:///modules/win7roles/answer, force = true, #copy files from puppet module to the local folder created above }dism { 'IIS-WebServerRole': ensure = present, answer = ${win7roles::params::answer}\\iis_net.xml, require = File[${win7roles::params::answer}], #answer file create with windows system image manager(windows AIK) windows 7 iso} } class win7roles::params { $answer =c:\\answer} * -- 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/36c555a6-4c93-42f5-adba-416ddbaa715c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] append registry array (REG_MULTI_SZ) with puppet
Hi, When add values to a key using the below puppet code it clears the current values on the server. Is there away to simply append a reg key value ? *class winregistry { registry_value { 'hklm\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0\BackConnectionHostNames': ensure = present,type = array,data = ['myservername2.mydomain.com', 'myservername3.mydomain.com','myservername4.mydomain.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/337dac52-9f31-41ea-8679-2d3096457e60%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] install_options ={$:: variable} -syntax
Hi, What is the syntax for install_options containing a variable ? This code below works fine,but i'd like to remove D:\BuildAgent\jre' and replace it with ${::javahome}, what should the syntax be? install_options = [ '/s','STATIC=1','JAVAUPDATE=0','AUTOUPDATECHECK=0', 'INSTALLDIR=D:\BuildAgent\jre' ], exec { *winfirewalljava*: command = ${::posh_cmd} -Command \netsh advfirewall firewall add rule name=Java dir=in action=allow program='D:\\BuildAgent\\jre\\bin\\java.exe' ENABLE=yes\, this does not work install_options = [ '/s','STATIC=1','JAVAUPDATE=0','AUTOUPDATECHECK=0', 'INSTALLDIR=\$::agenthome\\jre'], Thanks Helen -- 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/ef2cd5ee-4d09-48de-adfc-89a419e29e87%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] install_options ={$:: variable} -syntax
Thank you, although that works, it means all other install options are ignored ','JAVAUPDATE=0','AUTOUPDATECHECK=0. as check for updates is enabled On Tuesday, February 25, 2014 9:57:45 AM UTC, Johan De Wit wrote: Hi Helen, INSTALLDIR=${::agenthome}\jre HTH Jo should do the trick On 02/25/2014 10:52 AM, Helen Paterson wrote: Hi, What is the syntax for install_options containing a variable ? This code below works fine,but i'd like to remove D:\BuildAgent\jre' and replace it with ${::javahome}, what should the syntax be? install_options = [ '/s','STATIC=1','JAVAUPDATE=0','AUTOUPDATECHECK=0', 'INSTALLDIR=D:\BuildAgent\jre' ], exec { *winfirewalljava*: command = ${::posh_cmd} -Command \netsh advfirewall firewall add rule name=Java dir=in action=allow program='D:\\BuildAgent\\jre\\bin\\java.exe' ENABLE=yes\, this does not work install_options = [ '/s','STATIC=1','JAVAUPDATE=0','AUTOUPDATECHECK=0', 'INSTALLDIR=\$::agenthome\\jre'], Thanks Helen -- 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 javascript:. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/ef2cd5ee-4d09-48de-adfc-89a419e29e87%40googlegroups.com . For more options, visit https://groups.google.com/groups/opt_out. Upcoming Events: Zabbix Certified Training | http://www.open-future.be/zabbix-certified-training-10-till-12th-march Zabbix for Large Environments Training | http://www.open-future.be/zabbix-large-environments-training-13-till-14th-march Puppet Introduction Course | http://www.open-future.be/puppet-introduction-course-14th-april Puppet Advanced Training | http://www.open-future.be/puppet-advanced-training-15-till-17th-april Subscribe to our newsletter: http://eepurl.com/BUG8H -- 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/0960435b-3979-4e48-9be4-8b85799bc69e%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] install_options ={$:: variable} -syntax
class installjava7::x86 { package { 'Java 7 Update 51': ensure ='7.0.510' , source = '\\cam-OPS20\Install\IT Apps\Java\jre-7u51-windows-i586.exe', install_options = [ '/s','STATIC=1','JAVAUPDATE=0','AUTOUPDATECHECK=0',INSTALLDIR=${::javahome}], notify = Exec[winfirewalljava], } exec { winfirewalljava: command = ${::posh_cmd} -Command \netsh advfirewall firewall add rule name=Java dir=in action=allow program='\${::javahome}\\\bin\\java.exe' ENABLE=yes\, refreshonly = true, require = Package ['Java 7 Update 51'], } } site.pp $agenthome =d:\\buildagent $javahome =d:\\buildagent\\jre On Tuesday, February 25, 2014 10:45:14 AM UTC, Felix.Frank wrote: Hi, On 02/25/2014 11:30 AM, Helen Paterson wrote: Thank you, although that works, it means all other install options are ignored ','JAVAUPDATE=0','AUTOUPDATECHECK=0. as check for updates is enabled that wouldn't appear to be a puppet related problem. To be safe, though, can you share the relevant manifest snippet in its current form again? Thanks, Felix -- 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/14e1ba4c-d43a-4f58-8a3d-06fcb48b18d9%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Re: handy tip against unhelpful Could not intern from pson error
Thank you, this was a great help On Wednesday, August 24, 2011 5:21:21 PM UTC+1, Luke Bigum wrote: Cheers, that'll teach me to cut and paste ;) The second example's resource name should be without quotes, so: $service_name = httpd service { $servicename: ensure = running } err: /Stage[main]/Puppet_dashboard::Service/Service[undef]/ensure: change from stopped to running failed: Could not start Service[undef]: Execution of '/sbin/service undef start' returned 1: at /etc/puppet/ environments/testing/modules/httpd/manifests/service.pp:26 On Aug 24, 5:12 pm, Henrik Lindberg henrik.lindb...@cloudsmith.com wrote: I can't see any difference between your two examples. Typo? - henrik On 8/24/11 5:23 PM, Luke Bigum wrote: Not sure if people are already aware of this, but it might save someone some time in the future. I've been tracking down the following error today, it's rather unhelpful in telling you where the problem is in your manifests: # puppetd --test info: Retrieving plugin err: Could not retrieve catalog from remote server: Could not intern from pson: Could not convert from pson: Could not find relationship target Service[] The problem is the parser using an empty string as a resource name which I arrived at by using a variable inside double quotes for a resource declaration. I did this for style (or have been until now) - I like to have user defined strings in quotes so it easily distinguishes between them and puppet keywords, plus for syntax highlighting, etc. Turns out this personal preference has shot me in the foot as the difference between the error messages for an empty string versus an undefined variable is rather big. See this unhelpful message: $service_name = httpd service { $servicename: ensure = running } err: Could not retrieve catalog from remote server: Could not intern from pson: Could not convert from pson: Could not find relationship target Service[] versus this: $service_name = httpd service { $servicename: ensure = running } err: /Stage[main]/Puppet_dashboard::Service/Service[undef]/ensure: change from stopped to running failed: Could not start Service[undef]: Execution of '/sbin/service undef start' returned 1: at /etc/puppet/ environments/testing/modules/httpd/manifests/service.pp:26 -- 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/4b9c3848-ea40-4709-aee2-73962edeb732%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.