[Puppet Users] Re: Ruby gem-ruby-shadow RPM on RHEL 8 ?

2022-03-18 Thread Corey Osman
I would like to know your use case of this gem since parsing /etc/shadow or /etc/passwd can be done with other tooling like augeas. Also, are you parsing the puppetserver's files or the agent? Additionally, any ruby code used to parse files would be installed on the agent and never the

[Puppet Users] Re: [INFO, maybe ACTION] r10k Feature Proposal

2021-03-16 Thread Corey Osman
Why stop at the spec directory? Ignore all those other pesky files too that pdk and others leave behind. Gemfile* *.travis, *.gitlab-ci, *.ignore, ... On Thursday, March 11, 2021 at 4:04:38 PM UTC-8 Molly Waggett wrote: > Hey folks! > > We are planning an r10k feature to stop deploying

[Puppet Users] Re: Nonconformist Ubuntu based distro users

2021-03-11 Thread Corey Osman
ith > what I can do; changing an OS isn't a big deal. I generally don't have > hard requirements that I have to meet. > > *At work*, where I also use PE, we stick to Ubuntu-proper, and CentOS, > mostly as headless VMs (not desktops). But that's for wider compatibility > reasons t

[Puppet Users] Nonconformist Ubuntu based distro users

2021-03-04 Thread Corey Osman
Hi, Curious how many of you are using a Ubuntu derivative for specialized use cases. There are many reasons to do so with use cases ranging from cryptocurrency mining hardware to a government hardened distro.  Also popular distros like Xubuntu, PopOS and LinuxMint have opinionated software

[Puppet Users] Re: Puppet Apply

2017-06-02 Thread Corey Osman
I would suggest using a tool I wrote called the puppet debugger. It allows you to write little bits of code in realtime and get the results back right away. It is a wonderful tool to learn the language with. Basically just install it and run puppet debugger, than write some puppet code.

[Puppet Users] Announce: puppet-debugger release 0.6.0

2017-04-14 Thread Corey Osman
ebugger.com <https://www.puppet-debugger.com/> Install on your machine: gem install puppet-debugger Supports puppet 3.8+ Use emacs? Check out this puppet-debugger integration: https://github.com/voxpupuli/puppet-mode <https://github.com/voxpupuli/puppet-mode> enjoy, Corey

[Puppet Users] Re: Draft for new type and provider API

2017-02-05 Thread Corey Osman
One improvement I would like to see with the provider API is around getting the current state. I see many beginners including myself trying to add way more complexity than required in the exists? method. One would think that you in order to figure out if the resource exists that you should

[Puppet Users] Re: automatically generate puppet manifests for legacy servers

2016-08-12 Thread Corey Osman
You may want to check out https://github.com/devstructure/blueprint On Thursday, August 11, 2016 at 6:40:29 AM UTC-7, Dennis McCarthy wrote: > > Hi puppet-users, > > I've worked with puppet for a while now but was stuck on how best to > manage legacy servers quickly without having to create

[Puppet Users] Announce: puppet-retrospec 1.0.0 now available - easiest way to generate rspec-puppet tests

2016-07-05 Thread Corey Osman
<https://github.com/nwops/puppet-retrospec> enjoy. Corey Osman NWOps (A devops / puppet consulting company) -- 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

[Puppet Users] Re: Announce: puppet-repl v0.3.0 easiest way to learn the puppet language

2016-07-05 Thread Corey Osman
y be present. > > -Zee > > On Monday, July 4, 2016 at 4:55:45 PM UTC-7, Corey Osman wrote: >> >> I am happy to announce the next release of the puppet-repl is now >> available. This version now allows you to create functions, classes, and >> defines an

[Puppet Users] Announce: puppet-repl v0.3.0 easiest way to learn the puppet language

2016-07-04 Thread Corey Osman
Puppet 3.8+ https://github.com/nwops/puppet-repl <https://github.com/nwops/puppet-repl> Corey Osman NWOps (A devops / puppet consulting company) -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this gr

[Puppet Users] Re: Is there a way to publish a module via the Forge API?

2016-05-20 Thread Corey Osman
Have you seen the dpl gem? https://github.com/travis-ci/dpl#puppet-forge Corey On Thursday, May 19, 2016 at 9:51:38 PM UTC-7, Amos Shapira wrote: > > Hello, > > I didn't find a way to upload a module to the Forge using the Forge API. > Is this possible? > > I find it a bit weird that a tool

[Puppet Users] Announce: puppet-repl 0.2.0 and a new web version too

2016-05-17 Thread Corey Osman
hine gem install puppet-repl DON’T RUN IN PRODUCTION, THIS IS A DEVELOPMENT TOOL ONLY! AND DON’T DEVELOP IN PRODUCTION! https://github.com/nwops/puppet-repl <https://github.com/nwops/puppet-repl#remote-nodes> Corey Osman NWOps -- You received this message because you are subscribed

[Puppet Users] Re: Puppet Types auto generator

2016-04-09 Thread Corey Osman
I have taken a stab at generating types, providers and other items with puppet-retrospec. Take a look at https://github.com/nwops/puppet-retrospec retrospec puppet new_type -h Generates a new type with the given name, parameters, and properties. -n, --name= The name of the type you

[Puppet Users] Re: Announce: A REPL for the puppet language

2016-02-20 Thread Corey Osman
The gem requires puppet 3.8+. So whatever version of ruby puppet runs on is supported by puppet-repl. If you want to run ruby 2.3 I would suggest using puppet 4.3+. But I am not even sure puppet 4.3 runs on ruby 2.3 yet. On Friday, February 19, 2016 at 3:04:39 PM UTC-8, Corey Osman wrote

[Puppet Users] Announce: A REPL for the puppet language

2016-02-19 Thread Corey Osman
Hi, I created a REPL for the puppet language this week. This is something that has been lacking for quite some time. https://github.com/nwops/puppet-repl Install: gem install puppet-repl bash$ prepl It is currently at version 0.0.1 but is still very

[Puppet Users] Announce: puppet-retrospec release 0.12.0 - generate modules, facts, functions, types, providers and schemas easily

2016-01-26 Thread Corey Osman
https://github.com/nwops/retrospec-templates <https://github.com/nwops/retrospec-templates> Corey Osman -- 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, se

Re: [Puppet Users] Announce: puppet-retrospec release 0.12.0 - generate modules, facts, functions, types, providers and schemas easily

2016-01-26 Thread Corey Osman
, Jo wrote: > > Implied but not explicit … Puppet 4 supported now? > > On Jan 26, 2016, at 8:59 AM, Corey Osman <co...@logicminds.biz > > wrote: > > Happy to announce that release 0.12.0 of puppet-retrospec is now > available. Its taking me a long time to get this re

[Puppet Users] Re: Custom provider woes and questions

2015-12-08 Thread Corey Osman
I'll be releasing a type/provider generator that creates these files with basic code and unit tests in the next release of puppet-retrospec. You can use right now if you want to compile the gem yourself. https://github.com/nwops/puppet-retrospec/tree/development. Types and providers are

[Puppet Users] Re: Still mud-wrestling with spec testing

2015-11-28 Thread Corey Osman
You should use my tool that retrofits all the files you need in your module automatically for spec testing. https://github.com/nwops/puppet-retrospec gem install puppet-retrospec cd your_favorite_module retrospec puppet bundle install bundle exec rake spec If you question a previous file you

[Puppet Users] Re: Migrating to future parser (on 3.8) in preparation for upgrade to 4.0

2015-11-26 Thread Corey Osman
It looks like your doing parameter validation the old fashioned way. So there is no reason to have complicated validation code when it can be done easier using parameter data types and runtime validation. The easiest way is to validate $ensure is to use data types like Enum. Check out the

[Puppet Users] Re: How to install r10k for puppet 2.7 on RHEL?

2015-10-26 Thread Corey Osman
puppet 2.7 was so two years ago. The cool kids are using 4.x now. You need to install the puppetlabs yum repo to get the latest. Should be fairly simple on RHEL 5 since we now have the puppet AIO packages (ruby, puppet, and other stuff bundled). Corey On Monday, October 26, 2015 at 2:57:18

[Puppet Users] Re: Install Puppet as Docker CLI image

2015-10-20 Thread Corey Osman
I maintain some public docker images geared towards puppet development. They are based off of centos, and use gems to install puppet. I have packed the image just about every gem needed for development.

Re: [Puppet Users] ANNOUNCE: puppet-retrospec -- automate your unit test creation and other cool stuff

2015-10-05 Thread Corey Osman
I'll be at the contributor summit and conference on thursday-friday. Whats the best way to get a hold of you? Corey On Friday, October 2, 2015 at 4:08:58 PM UTC-7, Henrik Lindberg wrote: > > On 2015-01-10 7:24, Corey Osman wrote: > > Last year I had an idea to create a tool

[Puppet Users] ANNOUNCE: puppet-retrospec -- automate your unit test creation and other cool stuff

2015-09-30 Thread Corey Osman
Last year I had an idea to create a tool to automate the buildout of puppet unit tests by inspecting puppet code inside puppet manifests. Along with this idea I also wanted to retrofit any puppet module with the latest best practices, gems, rake commands and other stuff in development within

[Puppet Users] Re: Can we lookup hiera data object providing the file name

2015-09-23 Thread Corey Osman
You should be able to just use the normal hiera syntax. example: hiera('nodes', 'default_value', 'nodes/host1234') Documented here: https://github.com/puppetlabs/puppet/blob/master/lib/puppet/functions/hiera.rb Also, its bad practice to lookup hiera from within a template. Put the value in a

Re: [Puppet Users] Digest for puppet-users@googlegroups.com - 2 updates in 1 topic

2015-09-14 Thread Corey Osman
I have actually used audit quite extensively at a previous client. Although most of that requirement can be replaced with a custom type and provider. It was definitely good to use for triggering exec calls. On Sep 14, 2015 4:15 AM, wrote: >

Re: [Puppet Users] Is there a method for puppet to find all suid files?

2015-09-08 Thread Corey Osman
; > Thanks, > > Trevor > > On Tue, Sep 8, 2015 at 12:15 AM, Corey Osman <co...@logicminds.biz > > wrote: > >> As Trevor mentioned above this is something you want to control >> externally via cron and not puppet. I took a slightly different approac

Re: [Puppet Users] Is there a method for puppet to find all suid files?

2015-09-07 Thread Corey Osman
As Trevor mentioned above this is something you want to control externally via cron and not puppet. I took a slightly different approach and used an external fact which allowed be to write a fact in bash. There is no reason why you couldn't do this in a Ruby based fact but since all the

[Puppet Users] Re: How to use multiple versions of same module

2015-07-05 Thread Corey Osman
So the end goal would be to use r10k. However, in the midterm you need to do a few things. 1. Create a roles and profiles pattern for your business logic 2. version your modules inside your VCS. So basically you can create a nginx_profile1_2, nginx_profile_1_3, ... as well as a nginx_1_1 and

Re: [Puppet Users] A case for git (SVN vs Git)

2015-06-16 Thread Corey Osman
On Monday, June 15, 2015 at 7:31:08 AM UTC-7, Paul Seward wrote: On 12 June 2015 at 19:14, Ramin K ramin...@badapple.net javascript: wrote: Being somewhat in the middle of a similar conversation at $dayjob I believe it's a mistake to focus on the technology rather than the

[Puppet Users] A case for git (SVN vs Git)

2015-06-12 Thread Corey Osman
I have been tasked with an assignment to come up with a document for non technical decision makers to “chose Git over SVN”, since non technical people view VCS is all the same. With regards to Puppet I think its a horrible idea to use SVN but how do we prove it for decision makers that have no

Re: [Puppet Users] 8K node infrastructure and CA setup

2015-06-09 Thread Corey Osman
8, 2015 at 10:25 PM, Corey Osman co...@logicminds.biz javascript: wrote: Has anybody used this setup before? Any caveats? https://docs.puppetlabs.com/puppet/3.8/reference/config_ssl_external_ca.html#option-3-two-intermediate-cas-issued-by-one-root-ca Does this still apply when using puppet

[Puppet Users] 8K node infrastructure and CA setup

2015-06-08 Thread Corey Osman
Has anybody used this setup before? Any caveats? https://docs.puppetlabs.com/puppet/3.8/reference/config_ssl_external_ca.html#option-3-two-intermediate-cas-issued-by-one-root-ca Does this still apply when using puppet server 2.1? Corey -- You received this message because you are

Re: [Puppet Users] create puppet module from software install

2015-05-15 Thread Corey Osman
I would agree with Branan. You should avoid compiling source code on a puppet node (unless its a ruby gem). But if you must know there is a tool called blueprint that will get you what you want although it may not capture everything or it might capture too much.

[Puppet Users] Re: Multiple facts getting the same value

2015-05-15 Thread Corey Osman
I am not sure what your end goal is but it sounds like you want to get information from the puppet node during catalog enforcement to use during the catalog compilation. If this is the case I would recommend using a native type and provider to perform which executes directly on the puppet

[Puppet Users] Re: Anyone really using Postgres for a Hiera backend?

2015-05-14 Thread Corey Osman
What is the use case for a SQL hiera backend? This seems like an oxymoron. Do you have some sort of UI wrapped around it for data input? Also you could just create a data binding terminus for postgres. example: https://github.com/domcleal/foreman_data_binding Corey On Wednesday, May 13,

[Puppet Users] [Announce] Micro-puppet v0.0.2 now available with new code extinguisher feature

2015-04-01 Thread Corey Osman
On the heels of the previously announced tiny-puppet (https://github.com/example42/puppet-tp.git) now comes micro-puppet. A shortened version of tiny-puppet for the keystroke impaired. But with Micro-puppet there is so much more. Version 0.0.2 now brings a new feature called code

[Puppet Users] Re: how to transfer list of interfaces from hiera to class

2014-10-15 Thread Corey Osman
Your other option if using the future parser is to use the each function and iterate around the hash like you would in any other language. $interfaces = hiera('network_interfaces') # https://docs.puppetlabs.com/references/latest/function.html#each $interfaces.each { |$interface|

[Puppet Users] Re: Custom Providers and Third Party Gems

2014-10-15 Thread Corey Osman
Just to add. If you can remove any gem dependency by reimplementing that functionality inside your own provider or even create some helper code I would try that. There is a section in Nan's book that details how to distribute external helper code inside the module for native types/providers.

Re: [Puppet Users] Re: Puppet facts uploading to PuppetDB

2014-10-15 Thread Corey Osman
I am using this in a puppet post run command to upload the facts that changed after the puppet run. I have run into this problem on many occasions where I like to build a custom UI around displaying custom facts. Because facts only get uploaded to puppetdb before the puppet agent runs so

Re: [Puppet Users] Using gem from new puppetserver custom function?

2014-10-15 Thread Corey Osman
Piggybacking off the same topic. I have a few parsers that use the JSON gem so require 'json' is at the top of my parser which requires the native C extensions. Does the new puppet server come with a jrbuy version of the json gem that contains the functions? How would I write a parser that

[Puppet Users] Re: Need help with simple hiera example

2014-10-08 Thread Corey Osman
Seems like your clientcert is different during the puppet run than the command line since your explicitly passing in the clientcert. I would change clientcert in your hiera config to fqdn. You are not guaranteed to have a client cert, but all hosts will have a fqdn. You can also use the

[Puppet Users] Re: how to execute paths in a text file in puppet ruby

2014-10-08 Thread Corey Osman
*I would probably do something like this where we store all the java versions in a comma separated string.Although if using facter = 2.0 you can probably remove the join statement and store as an array.I also want to point out that java -version returns about 3 lines of text which may not be

[Puppet Users] Re: how to execute paths in a text file in puppet ruby

2014-10-08 Thread Corey Osman
/u01/app/oracle/product/jdk1.7.0_25/jre/bin/java /u01/app/oracle/product/jdk1.7.0_25/bin/java The fact is not returning anything. Let me know On Wednesday, October 8, 2014 3:22:22 PM UTC-4, Corey Osman wrote: *I would probably do something like this where we store all the java versions

Re: [Puppet Users] hiera hash to create_resources bombing - looking for how to troubleshoot

2014-09-26 Thread Corey Osman
I created a puppet function to help with debugging things the contents of variables. I am going to see if this can be added to std lib. However for now, just put this in your module code under lib/puppet/parser/functions. You will want to have at least one rspec unit test for speedy results,

[Puppet Users] Re: How to handle java home in module?

2014-09-01 Thread Corey Osman
Basically you should be creating an init script for each java application that you start. It should be the responsibility of that init script to set the JAVA_HOME/JAVA_BIN variables. With this in mind you shouldn't need to worry about facts or different JAVA_HOME variables since the init

Re: [Puppet Users] puppet unscheduling many service refreshes

2014-08-05 Thread Corey Osman
started. https://github.com/nethacker/usagewatch On 20 June 2014 04:45, Corey Osman co...@logicminds.biz javascript: wrote: Is there any back off algorithm in puppet that would unscheduled a service refresh when the CPU load is too high. Is there a timeout associated with refreshing

[Puppet Users] puppet unscheduling many service refreshes

2014-06-19 Thread Corey Osman
Is there any back off algorithm in puppet that would unscheduled a service refresh when the CPU load is too high. Is there a timeout associated with refreshing services? My CPU load peaks as high as 18(one min)(6 Processor Count) during puppet runs . I have about 20-30 java processes that

[Puppet Users] puppet facts upload not working

2014-03-17 Thread Corey Osman
Hi, I am trying to use puppet facts to push the latest facts to my puppetmaster after a puppet run but the command doesn't seem to work. #bash: puppet facts upload Error: execution expired Error: Try 'puppet help facts upload' for usage It appears like the command is timing out, but I don't

[Puppet Users] postgres issue with puppetdb unexpected EOF on client connection

2014-01-08 Thread Corey Osman
Hi, Hoping someone can help with this error. Check your puppetdb logs and you might see the same error. This doesn’t seem to cause any harm but I have seen occasional crashes with puppetdb. This error is littering my postgres log files. The puppetdb must be closing the connection

[Puppet Users] fix for running puppet as nonroot

2013-11-05 Thread Corey Osman
Hi, For those of you running puppet as non root and are using puppet to manage itself via service, exec or want to use the moo puppet command I have found a fix and submitted a pull request to fix this problem in puppet core. This problem is only unique to non root installations. See

[Puppet Users] Re: rspec-puppet require syntax

2013-09-19 Thread Corey Osman
Have you tried: *Class[ssl],Class[pcre3],Staging::Extract[nginx-1.4.1.tar.gz]* or *Class[ssl],Class[pcre3],Staging__Extract[nginx-1.4.1.tar.gz] Corey * On Tuesday, September 17, 2013 10:05:26 AM UTC-7, Guy Knights wrote: Can someone tell me the correct way to specify the following require

[Puppet Users] questions about verifying template paths and variables with rspec

2013-09-18 Thread Corey Osman
Hi, How can I verify the template exists in the given path? Example, Given the following in my manifest: if $somevar == 'true' { $templatefile='mymodule/mytemplate.xml.erb' } else { $templatefile='mymodule/mytemplate2.xml.erb' } file{somefile.txt: ensure = present,

[Puppet Users] Re: Pre-commit hooks for your modules?

2013-06-03 Thread Corey Osman
Here is what I have: Essentially I use the command line tools instead of ruby functions. This tells me exactly where the problem is down to the line number. +1 for checking the erb files, I'll have to add that to my script. I have the json check for my hieradata since I keep hiera in JSON

[Puppet Users] custom type and provider testing

2013-05-27 Thread Corey Osman
Hi, I am writing a custom native type/ provider and want to perform some rspec testing but I can't seem to find any documentation on how to test native types and providers. Can someone point me in the right direction. Corey -- You received this message because you are subscribed to the

[Puppet Users] Re: hiera not using non-root user custom fact

2013-05-09 Thread Corey Osman
:40 PM UTC-7, Corey Osman wrote: Hi, Before I begin, my environment consists of a standard master/client config with the exception that all my clients run under a non-root user. I have to use non-root so I can't simply restart under root to fix the problem. Master - 3.1.1 Client - 2.7.17

[Puppet Users] hiera not using non-root user custom fact

2013-05-06 Thread Corey Osman
facts $custom_env = hiera('custom_env') -- defined under nodes/nodename $custom_release = hiera('custom_release') -- defined under nodes/nodename class roles::specialapp( ) { include specialapp_profile } If this is a new bug, I'll be happen to file a ticket. Thanks, Corey Osman co

[Puppet Users] use of parameterized classes

2013-03-05 Thread Corey Osman
class? Reference: http://docs.puppetlabs.com/guides/parameterized_classes.html Thanks, Corey Osman co...@logicminds.biz Green IT and Data Center Automation Specialist -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from

[Puppet Users] Re: expect like behavior function?

2013-03-01 Thread Corey Osman
the installer to accept 1 and 2 4. Echo Y 5. Use /bin/true or /bin/yes I think the most dump installers can be automated using these solutions before reverting to expect. On Wednesday, February 27, 2013 11:23:59 AM UTC-8, Corey Osman wrote: A friend of mine ask me this question and I stated puppet

[Puppet Users] expect like behavior function?

2013-02-27 Thread Corey Osman
through puppet, puppet never sends a yes and the prompt ends up in a loop and never runs the installer. You know how to make the exec resource send yes to the command line? Thanks, Corey Osman co...@logicminds.biz Green IT and Data Center Automation Specialist -- You received this message

[Puppet Users] Disable Cron Script using puppet resource

2013-01-26 Thread Corey Osman
How can I disable / enable a cron job using puppet resource cron? Thanks, Corey Osman co...@logicminds.biz Green IT and Data Center Automation Specialist -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group

[Puppet Users] help with creating self.instances for puppetlabs-lvm providers

2012-10-29 Thread Corey Osman
need to reference @property_hash? Also, How do I add tests for puppet resource? Any examples? BTW, I am adding this code so that I can validate that puppet did what it was supposed to do without writing custom parsers and formatters (Thats what puppet is for. Thanks, Corey Osman co

[Puppet Users] puppet windows importing manifests twice when using puppet apply

2012-10-16 Thread Corey Osman
I am trying to create a masterless local windows installer and I have run into an issue where puppet is importing my manfiests multiple times creating multiple declaration errors. You may notice the importing occurs twice but with different directory layouts. One import is via puppet while

[Puppet Users] Re: Setting up Java on Windows

2012-10-16 Thread Corey Osman
I wasn't aware that you could use the package resource for exe files since it looked like it was limited to msi files. I ended up crafting up this solution using exec resource exec{jdkinstaller: command = ${::installer_dir}/jdk-6u30-windows-i586.exe /s

[Puppet Users] Set a windows environment variable from manifest

2012-10-10 Thread Corey Osman
I want to setup java jdk and maven and need to set some environment variables that stick around after reboot. I also need to add to values to the path variable so I can call via the command line. What's the best way to set permanent environment variables for windows via the manifest? Is there a

[Puppet Users] Announce: RemoteAdmin 0.6 ( Foreman / Puppet Mobile App ) Now in appstores

2012-07-23 Thread Corey Osman
Corey Osman co...@logicminds.biz Green IT and Datacenter Automation Specialist -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email

[Puppet Users] script to find non-puppet systems

2011-12-20 Thread Corey Osman
it. Does anybody have some good ideas how a system can be detected as a non-puppet system? One idea would be to use net-snmp to query the list of installed packages. But this requires net-snmp to be running snmpwalk -v 2c -c public hostname 1.3.6.1.2.1.25.6.3.1.2 | grep puppet Corey Osman co

[Puppet Users] time issue with puppet

2011-12-14 Thread Corey Osman
{synctime: path = [/bin, /usr/bin/, /sbin, /usr/sbin/], # schedule = timecheck, command = ntpdate $timeserver, } alert(Puppet had to sync the time as it was out of sync) } } Corey Osman co

[Puppet Users] Could not render to b64_zlib_yaml after 2.6.12 upgrade

2011-11-08 Thread Corey Osman
Puppet configuration client: Could not render to b64_zlib_yaml: uninitialized constant Base64 Any ideas? Is this a ruby problem? Corey Osman co...@logicminds.biz Green I.T and Datacenter Automation Specialist -- You received this message because you are subscribed to the Google Groups Puppet

[Puppet Users] root pass encryption type

2011-11-03 Thread Corey Osman
How do I add a new root password? What should I encrypt the password with that foreman accepts? MD5, SHA1? Corey Osman co...@logicminds.biz 678-348-0582 Pacific Time Green I.T and Datacenter Automation Specialist -- You received this message because you are subscribed to the Google

[Puppet Users] Setting file level ACL

2011-09-27 Thread Corey Osman
How do I go about using puppet to set an ACL on a file. I did not see ACL support under the file type. Has anybody done this before without using exec? Example: # Set ACL on directory setfacl -R -d -m mask:007 /directory Corey Osman -- You received this message because you

[Puppet Users] help using unless in exec for postgres database creation

2011-08-15 Thread Corey Osman
Hi, I have the following exec type: exec{createdb: path = /usr/bin:/usr/sbin:/bin, command = sudo -u postgres createdb -U postgres -E UNICODE opennms, unless = sudo -u postgres psql -l | grep opennms /dev/null, require = Service[postgresql], } Where this

[Puppet Users] Re: Help with retrieving a user's environment variable

2011-08-09 Thread Corey Osman
...@spam.spam.spam.spam.spam.spam.spam.egg.and.spam.freshrpms.net wrote: Corey Osman wrote : I need to get the environment variable ORACLE_SID from the OS.  I know this can be done with the following: $blah = env(PATH) However, the ORACLE_SID variable is only set under the oracle user account.  So I would need a way

[Puppet Users] Help with retrieving a user's environment variable

2011-08-08 Thread Corey Osman
Hi, I need to get the environment variable ORACLE_SID from the OS. I know this can be done with the following: $blah = env(PATH) However, the ORACLE_SID variable is only set under the oracle user account. So I would need a way to login as the oracle account first to retrieve the ORACLE_SID

[Puppet Users] Puppet HP iLO module -- don't waste your time with the ilo web interface

2011-08-04 Thread Corey Osman
I just finished this module and thought I would share with the rest of the puppet community. You can get the module by following the link below. https://github.com/logicminds/devops/tree/master/puppet-modules/hpilo enjoy, Corey Osman --README File from hpilo Module- This module

[Puppet Users] Re: [foreman-users] Foreman 0.3 released

2011-06-07 Thread Corey Osman
Horray! Sent from my iPhone On Jun 7, 2011, at 1:15 AM, Ohad Levy ohadl...@gmail.com wrote: I'm pleased to announce the release of Foreman 0.3 Download from: Source: http://theforeman.org/attachments/download/237/foreman-0.3.tar.bz2 RPM:

[Puppet Users] Getting information from puppet modules

2011-06-01 Thread Corey Osman
Hi, I have created a few modules with the puppet-module generate function and I wanted to know how I can use some of the module's json features to get metadata information from the module. Is there an api to get this module info? puppet-module generate cosman-test creates the following

[Puppet Users] report for schedule items

2011-05-20 Thread Corey Osman
Hi, Currently when a resource is scheduled, that resource doesn't run until its supposed to. However, the puppet report currently doesn't show if a resource is schedule as it just marks it as skipped. Is there a way to separate out skipped from scheduled in puppet reports? Corey -- You

[Puppet Users] puppet resource for group

2011-05-13 Thread Corey Osman
Hi, Why doesn't puppet resource group tell me who belongs to the group? Given the group such as: mg_team:x:501:smruph, cosman, msmith, mhankey With the command: puppet resource group mg_team only returns: group { 'mg_team': gid = '501', ensure = 'present' } I was expecting: group {

[Puppet Users] variables inside a template for my hp ilo device

2011-05-04 Thread Corey Osman
I am writing a hp ilo module to automatically assign a static ip that is derived from the IP of the system which is fed in via facter. I basically just need to change the network the ilo is connected to. The ruby code works great inside the irb console. However, puppet doesn't seem to be

[Puppet Users] Re: ssh_authorized_key fails when home directory doesn't exist

2011-04-22 Thread Corey Osman
} and that onlyif is a valid parameter. Does every defined type have onlyif parameter built in? On Apr 21, 4:00 pm, Jeff McCune j...@puppetlabs.com wrote: On Thu, Apr 21, 2011 at 3:41 PM, Corey Osman co...@logicminds.biz wrote: Here is my situation: 1. We use Active directory (LDAP) to store

[Puppet Users] Re: ssh_authorized_key fails when home directory doesn't exist

2011-04-22 Thread Corey Osman
For anybody interested I found a feature request already created. Please vote on it and make it visable for Puppetlabs to include in the next release. http://projects.puppetlabs.com/issues/651 On Apr 22, 10:50 am, Corey Osman co...@logicminds.biz wrote: Yes but if I am understanding you

[Puppet Users] ssh_authorized_key fails when home directory doesn't exist

2011-04-21 Thread Corey Osman
Here is my situation: 1. We use Active directory (LDAP) to store all user info which is retrieved from linux 2. A home directory is not created until the first time the user logs into the linux system I am using the ssh_authorized_key type to push out my ssh keys to every system. However,

[Puppet Users] Script to find potential puppet clients

2011-04-19 Thread Corey Osman
Has anybody written a script that will scan the network to find systems not running puppet and ultimately send an email with the findings? I was thinking I can do this by just scanning for port 8141 or is it 8139? This would assume listen=true is setup on all the existing clients though. I

[Puppet Users] Re: ssh_authorized_key type not working

2011-04-08 Thread Corey Osman
Ben, What do you mean change encryption to type? Do you mean change type = ssh-rsa to encryption= ssh-rsa? On Apr 7, 5:18 pm, Ben Hughes b...@puppetlabs.com wrote: On Thu, Apr 07, 2011 at 10:51:04AM -0700, Corey Osman wrote: puppet resource ssh_authorized_key  (this returns nothing

[Puppet Users] ssh_authorized_key type not working

2011-04-07 Thread Corey Osman
My module's init.pp http://pastebin.com/4aBYjJQq Does anybody else have this working in their environment? Corey Osman -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com

[Puppet Users] duplicate entries in classes.txt

2011-04-04 Thread Corey Osman
I am not sure why I am getting duplicate entries in my classes.txt file under /var/lib/puppet. I am using puppet 2.6.4 version. I am also using foreman as my external node classifer. This is on the client: bash#more classes.txt ad2ldap base_services baseapps sudo tier3_keys settings

[Puppet Users] Pycon 2011

2011-03-11 Thread Corey Osman
Hi, someone is giving a talk about puppet at pycon. Are there any other puppet users at pycon? Sent from my iPhone -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To

[Puppet Users] Re: Help with Oracle Installer manifest

2011-01-14 Thread Corey Osman
Well based on all the feedback, I have decided to go the RPM route. I had thought about it earlier and it sounded silly to package a 1.8GB gz file into an rpm. However, below is what I have decided to do: 1. Install oracle with patches 2. Tar+gzip entire /opt/oracle directory (954MB) vs 1.8GB

[Puppet Users] Help with Oracle Installer manifest

2011-01-13 Thread Corey Osman
Hi, I am somewhat new to puppet and I wanted to show a demo that automated the install of oracle to my DBA in hopes to entice him to start automating his procedures. I have linked my manifest code below for review. In the code I have attempted to automate a complete oracle install by

[Puppet Users] Re: Help with Oracle Installer manifest

2011-01-13 Thread Corey Osman
On Jan 13, 7:19 pm, Patrick kc7...@gmail.com wrote: On Jan 13, 2011, at 6:26 PM, Corey Osman wrote: What happens when it takes a while to transfer 1.8GB file?   Just a quick warning before I leave, don't even think of copying this using puppet if you have version 0.25.x or below.  Those