[Puppet Users] Puppet group resource?

2019-08-26 Thread Jason McMahan
Good day, I am trying to add users to the local admin group but on a minimal list. I have used the following code however it still throws errors if a local account is added or a sid is unresolvable. #Class Profile Server.admin group class profile::windows::groups::server_admin { if ($::role != '

[Puppet Users] Sensitive type?

2019-06-20 Thread Jason McMahan
Good day, We were attempting to secure passwords appearing in files. In the node manifest we changed $password = lookup("user_cred.${username}.${domain_lookup}.password")) to $password = Sensitive(lookup( "user_cred.${username}.${domain_lookup}.password")) In the resources file it correctly reda

Re: [Puppet Users] Permissions denied?

2019-01-30 Thread Jason McMahan
Thank you Josh, I think the issue is wrong file permissions on the module in the forge. All my other modules are fine. Appreciate the confirmation on my initial thought. On Tuesday, January 29, 2019 at 3:49:37 PM UTC-6, Josh Cooper wrote: > > > > On Tue, Jan 29, 2019 at 10:16 AM J

[Puppet Users] Permissions denied?

2019-01-29 Thread Jason McMahan
Good day, I received the below error when running the lsp module by kpn from the forge. Error: /File[C:/ProgramData/PuppetLabs/puppet/var/lib]: Failed to generate additional resources using 'eval_generate': E rror 500 on SERVER: Server Error: Permission denied - /etc/puppetlabs/code/environme

[Puppet Users] Re: adding require to if/elseif statement?

2018-09-11 Thread Jason McMahan
ce => "$file_source /file.exe" >} > } > else { >exec { 'client_setup': > command => 'Invoke-WebRequest "$$file_source/file.exe " -outfile > "C:/Windows/dir/file.exe" ', > provider => powershell, > creates

[Puppet Users] Re: adding require to if/elseif statement?

2018-09-11 Thread Jason McMahan
-5, Michael Watters wrote: > > What you have there looks fine but I would change the elsif to an else > statement. > > > On Tuesday, September 11, 2018 at 8:08:53 AM UTC-4, Jason McMahan wrote: >> >> Good day, >> I am attempting to add require to an if statement

[Puppet Users] adding require to if/elseif statement?

2018-09-11 Thread Jason McMahan
Good day, I am attempting to add require to an if statement and not sure i am doing it right. Any help would be greatly appreciated. If the machine is joined to our internal domain it will use a file resource, if external i am using a invoke-webrequest as the file is on azure blob storage.

Re: [Puppet Users] file resource issue?

2018-06-04 Thread Jason McMahan
d': > command => 'udevadm control --reload-rules && udevadm > trigger --subsystem-match=block', > path=> ['/usr/sbin', '/usr/bin'], > refreshonly => true, > } > > > for conte

[Puppet Users] file resource issue?

2018-05-31 Thread Jason McMahan
Good day, I am using the file resource to check if a file has changed or altered on github. the code i am using is file { 'azure_udev_rule': path => '/etc/udev/rules.d/66-azure-storage.rules', ensure => 'file', source => 'https://raw.githubuserconten

Re: [Puppet Users] agent_catalog_run.lock

2018-05-23 Thread Jason McMahan
Thank you for the prompt reply R.I. I appreciate the help. On Wednesday, May 23, 2018 at 8:46:32 AM UTC-5, R.I. Pienaar wrote: > > > > On Wed, 23 May 2018, at 15:16, Jason McMahan wrote: > > Has anyone else run into the problem where an agent run gets stuck per > say?

[Puppet Users] agent_catalog_run.lock

2018-05-23 Thread Jason McMahan
Has anyone else run into the problem where an agent run gets stuck per say? We have found at times the agent runs could be stuck for multiple days. I was trying to come up with an option that would automatically stop the agent run if it lasted over 24 hrs per say so we dont have to go back to se

Re: [Puppet Users] removing resource on windows?

2018-05-21 Thread Jason McMahan
t is not valid puppet DSL. > > > Rob Nelson > rnel...@gmail.com > > On Mon, May 21, 2018 at 2:07 PM, Jason McMahan > wrote: > >> Good day, >> I am a bit confused. >> I can go to the command line type >> puppet resource package 'VMware Too

[Puppet Users] removing resource on windows?

2018-05-21 Thread Jason McMahan
Good day, I am a bit confused. I can go to the command line type puppet resource package 'VMware Tools' ensure=absent and puppet will remove the package happily. However i have the same exact code in my manifest and it complains at agent run that it requires source. Doesnt this seem a little

[Puppet Users] is anyone using winad module?

2018-04-24 Thread Jason McMahan
Is anyone using https://forge.puppet.com/shoneslab/winad -- 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

[Puppet Users] Re: puppet provider password decryption?

2018-04-11 Thread Jason McMahan
again. Jason On Tuesday, April 10, 2018 at 12:41:27 PM UTC-5, Jason McMahan wrote: > > Good day, > I wanted to toss this out there to see if anyone has tried this. > > Could i perform a hiera lookup from within a custom puppet provider? > > > My thinking is to lookup an

[Puppet Users] puppet provider password decryption?

2018-04-10 Thread Jason McMahan
Good day, I wanted to toss this out there to see if anyone has tried this. Could i perform a hiera lookup from within a custom puppet provider? My thinking is to lookup an encrypted password, then use the lookup to decrypt and pass the username and password to a powershell that i need to execu

Re: [Puppet Users] Puppet type provider help?

2018-04-06 Thread Jason McMahan
hell module > instead https://github.com/puppetlabs/puppetlabs-powershell? > > On Wed, Apr 4, 2018 at 2:09 PM, Jason McMahan > wrote: > >> Good day, >> I am reviewing a type and provider and would like input or help to better >> understand. >> >> The pr

[Puppet Users] Puppet type provider help?

2018-04-04 Thread Jason McMahan
Good day, I am reviewing a type and provider and would like input or help to better understand. The provider is require 'puppet/util' Puppet::Type.type(:winad_group).provide(:powershell) do confine :operatingsystem => :windows defaultfor :operatingsystem => :windows commands :power

[Puppet Users] Help for hopeless please.

2018-03-22 Thread Jason McMahan
Good day, I am trying to get the module shoneslab/winad working in our environment. I was able to modify (hack) the module so it actually creates a new group as it should (using my user context, adding a param for service account and password is my next trial) but every time it runs it wants to m

[Puppet Users] active directory module mod 'shoneslab-winad', '0.1.2'

2018-03-07 Thread Jason McMahan
Has anyone recently used mod 'shoneslab-winad', '0.1.2' We have added it our puppet puppetfile then created a manifest and applied it to a node however it isnt working. When and agent run is completed the following error occurs. Error: Could not retrieve catalog from remote server: Error 500 on S

[Puppet Users] Re: Creating a PowerShell based fact to get Drive Letters and Labels

2017-10-18 Thread Jason McMahan
We use the windows disk facts module at https://forge.puppet.com/dylanratcliffe/windows_disk_facts That should give you what you want then you can use it within your manifests. On Tuesday, October 17, 2017 at 4:22:20 PM UTC-5, Ryan Murphy wrote: > > So I have the following powershell command th

[Puppet Users] Autofs suggestions

2017-10-18 Thread Jason McMahan
Hello, We are looking to remove our auto mounts from ldap and manage in puppet. We have the puppet/autofs module. One thing we would like to do is break auto mounts from all to specific. For instance we do not want all servers to get oracle auto mounts however they are in the same map file.

[Puppet Users] Re: One master per environment, or one to rule them all?

2017-10-17 Thread Jason McMahan
I agree with Trey, ours is very similar to his as well. It works well when testing the latest Puppetdb for example. On Sunday, October 15, 2017 at 8:07:41 AM UTC-5, treydock wrote: > > I think a combination of the two makes sense, and that's what we do. Our > production masters have many enviro

[Puppet Users] get physical disk for lvm usage?

2017-10-17 Thread Jason McMahan
Good day, We were working on the lvm module from the forge and one item that came to mind was the ability to dynamically retrieve the disks then determine which ones may be used for Lvm. For example sda,sdb,sdc are present. We would like to get the disk in an array or hash possibly and remove o

[Puppet Users] puppet in the dmz?

2017-08-23 Thread Jason McMahan
Good day, We are looking at managing our infrastructure in the dmz as we do our internal nodes with puppet. We are running multiple masters with foreman as our enc. R10k ensure the manifests on all masters are updated regularly. Does anyone have suggestion to integrate the dmz into our current l

Re: [Puppet Users] revoke / delete node certificate from puppet ca remotely?

2017-08-23 Thread Jason McMahan
Thank you Martin, Still running into problems. I must not be using correct certificate most likely. Appreciate the response. On Thursday, August 17, 2017 at 10:00:42 AM UTC-5, Martin Alfke wrote: > > > > On 17 Aug 2017, at 14:23, Jason McMahan > wrote: > > >

[Puppet Users] revoke / delete node certificate from puppet ca remotely?

2017-08-17 Thread Jason McMahan
Good morning, We installed a puppet agent on our citrix mgmt servers. The problem became that the way it is done a golden image is used, server_dev. Once sealed that spins off multiple other servers for stage and prod environments. We want to know about the servers, ensure they are in configura

Re: [Puppet Users] Re: Scheduled_task?

2017-05-18 Thread Jason McMahan
Thank you for confirming my suspicion Josh. On Wednesday, May 17, 2017 at 11:09:14 AM UTC-5, Josh Cooper wrote: > > > > On Wed, May 17, 2017 at 5:34 AM, Jason McMahan > wrote: > >> The full error is >> >> Error: Failed to call >> #::NewWorkItem >

[Puppet Users] Re: Scheduled_task?

2017-05-17 Thread Jason McMahan
#::New WorkItem with HRESULT: -2147024893.: The system cannot find the path specified. The folder exists but the task is not created nor seen. I believe i may just need to create it in the root but would like verification. Thank you On Tuesday, May 16, 2017 at 6:59:17 PM UTC-5, Jason

[Puppet Users] Scheduled_task?

2017-05-16 Thread Jason McMahan
Good day, We were using the scheduled_task resource to create a task. It creates the task however we nwed to create the task in a folder under task scheduler. \automation\inventory We tried name => '\automation\inventory\ But at run says can not find path. We looked at working_dir but that didn'

[Puppet Users] Re: theforeman\foreman module?

2017-05-01 Thread Jason McMahan
5:04 private drwxr-x---. 2 puppet puppet 4096 Apr 25 17:41 private_keys drwxr-xr-x. 2 puppet puppet 4096 Apr 25 17:41 public_keys In our code it shows the limited changes we are making. Thank you On Tuesday, April 25, 2017 at 12:34:42 PM UTC-5, Jason McMahan wrote: > > Has anyone else used t

Re: [Puppet Users] theforeman\foreman module?

2017-04-26 Thread Jason McMahan
, April 26, 2017 at 6:00:06 AM UTC-5, Dominic Cleal wrote: > > On 25/04/17 18:34, Jason McMahan wrote: > > Has anyone else used the foreman puppet module to create a new formean > host? > > We used the module, created the host, and manually added it to our f5 > > but odd

[Puppet Users] theforeman\foreman module?

2017-04-25 Thread Jason McMahan
Has anyone else used the foreman puppet module to create a new formean host? We used the module, created the host, and manually added it to our f5 but odd things show up. If i go to https://foreman.com (load balancer) go to infrastructure > smart proxy > click on puppetca host and look at certif

Re: [Puppet Users] build version tag?

2017-03-01 Thread Jason McMahan
I am sorry i do not quite catch your meaning Rob. Could you please explain? Thank you On Tuesday, February 28, 2017 at 9:26:01 PM UTC-6, Rob Nelson wrote: > > If you're using a control repo, you can change the catalog version number > from seconds since epoch to git commit hash, which should all

[Puppet Users] build version tag?

2017-02-28 Thread Jason McMahan
Good day, I was wondering if others could offer their thoughts, advice? We would like to tag any new servers built with a build version, and tie that build version to all modules that were used for building it? For instance if i built server test1 and it was tagged with build.2_28_2017_1.0 we c

[Puppet Users] modifying registry values?

2017-02-09 Thread Jason McMahan
Good day, We are using the puppetlabs-registry module and would like to know is it possible to replace specific string with in a registry key then write it back? For example if i wanted to set the following firewall rule (and i know there are modules, but would this is the best example i could

[Puppet Users] help with checking presence of multiple file resources in profile manifest.

2016-11-17 Thread Jason McMahan
Good day, I am attempting to create a profile manifest for installation of one of our windows applications. The application upon install creates multiple services and equivalent exe. The current structure we use is as shown below class profile::application { ## Install application package packa

[Puppet Users] Re: windows feature module for converting user shell between core/minimal/gui?

2016-11-09 Thread Jason McMahan
forth easily but requires roughly 18gb os disk. Thank you and have a great night. On Wednesday, November 9, 2016 at 3:01:36 PM UTC-6, Akai wrote: > > Am Mittwoch, 9. November 2016 18:49:35 UTC+1 schrieb Jason McMahan: >> >> >> Error: Could not retrieve catalog from rem

[Puppet Users] windows feature module for converting user shell between core/minimal/gui?

2016-11-09 Thread Jason McMahan
Good day, We are attempting to minimize our template size, to do this we create a windows 2012r2 core template. However we will need to convert from core > minimal > gui and or back or forth. Our first thought is to copy the wim to the a directory on the template. C:\install\install.wim t

[Puppet Users] info for class loadings?

2016-11-09 Thread Jason McMahan
Good day, I was wondering what others are doing to illustrate when a class is loaded during debug mode? I know when you run a puppet agent -t --debug it shows the info: loading facts for instance. Does everyone use notice then what you want to say? Thank you for any help. -- You received this

[Puppet Users] module puppetlabs/motd question?

2016-11-08 Thread Jason McMahan
I am new to puppet, and git but I had a question surrounding the module puppetlabs/motd When I use this module for my windows servers the spacing is messed up and the motd looks jagged per say. * hello world * (this should have like 4 trailing white spaces for example)

[Puppet Users] Puppet agent install question?

2016-10-27 Thread Jason McMahan
I have been thinking about this for a time and really feel this should be an easy question, hoping I am just over thinking. If I would like to automate the install of puppet agent on a windows server am I required to provide puppet_server and puppet_ca_server? I thought msiexec /qn /norestart /

[Puppet Users] puppet resource package?

2016-10-19 Thread Jason McMahan
Good day, We are working on a fresh roll out of puppet o our company. We created a module to install an application but we quickly realized the application is not appearing in add remove programs. It was soon apparent that we could not check for the package name if it does not appear there. Does