[Puppet-dev] Re: [ANN] Puppet Development Kit (pdk) preview (0.6.0)

2017-08-11 Thread Corey Osman
Do you guys have plans to bundle the puppet debugger in the pdk? I can't think of a more useful tool then a repl and debugger to be part of development kit. Also will the pdk releases coincide with PE releases? I would want to make sure I am developing on the same platform that my code is r

[Puppet-dev] Re: [ANN] Puppet Development Kit (pdk) preview (0.6.0)

2017-08-11 Thread Corey Osman
I haven't messed with PDK yet. What problems is this new tool solving though? How is it different from puppet-retrospec? https://github.com/nwops/puppet-retrospec Bundling ruby was a good idea and all the gems. Corey On Tuesday, August 8, 2017 at 7:58:39 PM UTC-7, Lindsey Smith wrote: > >

Re: [Puppet-dev] listing datatypes

2017-03-31 Thread Corey Osman
hort term, for the statically loaded things, take a look at > Puppet::Pops::Types::TypeFactory.type_map. It's "@api private" but it's > not likely to change any time soon. > > - thomas > > > On Fri, Mar 31, 2017 at 3:19 AM, Corey Osman > wrote: > &

[Puppet-dev] listing datatypes

2017-03-30 Thread Corey Osman
Hi, I have found a way to list datatypes for the puppet-debugger (https://github.com/nwops/puppet-debugger ) but my approach seems hackish. Additionally my approach only seems to pick up the core datatypes and not 3rd party types loaded from stdlib pu

[Puppet-dev] 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 jus

[Puppet-dev] Re: Only testing modules on puppet 4.2.3 and up

2017-01-09 Thread Corey Osman
Really looking forward to all the new module changes and things to come about. On Monday, January 9, 2017 at 10:13:01 AM UTC-8, Hunter Haugen wrote: > > Hello puppet devs! > > The puppet 3.x series has been EOL'd as of the beginning of 2017 and is no > longer supported by Puppet Inc. ( > https:

[Puppet-dev] list all available functions by input data type

2016-07-29 Thread Corey Osman
Hi, I am curious what the best approach would be to get a list of puppet functions that respond to a particular data type. I am looking to add a feature to the puppet-repl where tab complete would work off of the . operator. Example: ‘-100’. abs max min split

Re: [Puppet-dev] Passing Credentials in Powershell Scripts

2016-05-20 Thread Corey Osman
I have been in this same situation before and used node_encrypt to do the job. https://github.com/binford2k/binford2k-node_encrypt You can do the following. 1. encrypt hiera data with hiera-eyaml 2. encrypt parameter or other item during compilation using node_encrypt as the eyaml encrypted da

[Puppet-dev] Re: server facts

2016-05-16 Thread Corey Osman
:58:15 PM UTC-7, Henrik Lindberg wrote: > > On 15/05/16 23:53, Corey Osman wrote: > > Hi, > > > > I want to retrieve server_facts as documented below but the puppet node > > face doesn’t seem to create a variable called $server_facts in the facts > > hash.

[Puppet-dev] server facts

2016-05-15 Thread Corey Osman
Hi, I want to retrieve server_facts as documented below but the puppet node face doesn’t seem to create a variable called $server_facts in the facts hash. https://docs.puppet.com/puppet/latest/reference/lang_facts_and_builtin_vars.html#serverfacts-variable

Re: [Puppet-dev] travis issue affecting many repos using ruby 1.9.3

2016-02-01 Thread Corey Osman
t, such as > https://travis-ci.org/voxpupuli/puppet-confluence/builds/106194437 > > > Rob Nelson > rnel...@gmail.com > > On Mon, Feb 1, 2016 at 12:38 PM, Corey Osman > wrote: > >> FYI >> >> There is an issue with travis and bundler on ruby version 1.9.3. S

[Puppet-dev] travis issue affecting many repos using ruby 1.9.3

2016-02-01 Thread Corey Osman
FYI There is an issue with travis and bundler on ruby version 1.9.3. So if your build matrix uses this ruby you may be seeing this error: NoMethodError: undefined method `spec' for nil:NilClass To fix you just need to update bundler like so in your travis file. before_install: # https://gi

Re: [Puppet-dev] RFC - A specification for module schemas

2016-01-31 Thread Corey Osman
On Saturday, January 30, 2016 at 11:31:36 PM UTC-8, R.I. Pienaar wrote: > > > > - Original Message - > > From: "Corey Osman" > > > To: "puppet-dev" > > > Sent: Saturday, January 30, 2016 7:47:03 PM > > Subject: Re: [

Re: [Puppet-dev] RFC - A specification for module schemas

2016-01-30 Thread Corey Osman
On Saturday, January 30, 2016 at 9:29:02 AM UTC-8, Gareth Rushgrove wrote: > > I think there are some interesting ideas here but I want to pull out > the problems, and then jot down a few thoughts. Lots of comments > inline. > > > On 30 January 2016 at 04:45, Corey Os

Re: [Puppet-dev] RFC - A specification for module schemas

2016-01-30 Thread Corey Osman
On Friday, January 29, 2016 at 10:47:48 PM UTC-8, R.I. Pienaar wrote: > > > > - Original Message - > > From: "Corey Osman" > > > To: "puppet-dev" > > > Sent: Saturday, January 30, 2016 5:45:05 AM > > Subject: [

[Puppet-dev] RFC - A specification for module schemas

2016-01-29 Thread Corey Osman
eed to take to make this a supported specification? What would you desire in a module schema? Am I the only one that thinks this is a killer solution? Corey Osman -- You received this message because you are subscribed to the Google Groups "Puppet Developers"

Re: [Puppet-dev] hiera_hash in parameter lookup

2016-01-27 Thread Corey Osman
valid options. > > > Rob Nelson > rnel...@gmail.com > > On Wed, Jan 27, 2016 at 1:07 PM, Corey Osman > wrote: > >> I have the following code which uses the auto binding feature to lookup a >> hiera value. This is nothing new though. The problem I see is

[Puppet-dev] hiera_hash in parameter lookup

2016-01-27 Thread Corey Osman
I have the following code which uses the auto binding feature to lookup a hiera value. This is nothing new though. The problem I see is that there is no way to tell puppet to use hiera_hash() for the install_options. class sql2014( Hash $install_options= {}, String $instance_name

[Puppet-dev] librarian-puppet with puppetlabs_spec_helper

2016-01-08 Thread Corey Osman
Has anyone combinedlibrarian-puppet with puppetlabs_spec_helper together instead of using the fixtures file? If so did you run into any issues? Corey -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To unsubscribe from this group and

[Puppet-dev] Re: using commands with generated path

2015-12-11 Thread Corey Osman
On Friday, December 11, 2015 at 10:49:40 AM UTC-8, John Bollinger wrote: > > > > On Friday, December 11, 2015 at 11:08:08 AM UTC-6, Corey Osman wrote: >> >> Hi, >> >> I am curious on a few things >> >> 1. Is the custom type code run on the node or

Re: [Puppet-dev] error when loading functions

2015-12-11 Thread Corey Osman
That worked great, thanks! Corey On Monday, November 23, 2015 at 10:34:32 AM UTC-8, Michael Smith wrote: > > You'll need to call Puppet.initialize_settings, that should setup the > environment. > > On Wed, Nov 18, 2015 at 4:09 PM, Corey Osman > wrote: > >> I am

[Puppet-dev] using commands with generated path

2015-12-11 Thread Corey Osman
Hi, I am curious on a few things 1. Is the custom type code run on the node or master, makes sense the provider is but not sure about the type code. 2. How would I use the commands syntax with a command path determined by parsing and XML file. Or passed via the user. Basically I was hoping t

[Puppet-dev] error when loading functions

2015-11-18 Thread Corey Osman
I am testing out some ruby code that tests functions. However, I can’t seem to load the function file or call other function methods to what seems to be an environment object error. Any ideas, is there some other file that I need to load or config I need to set? require 'puppet' => true ir

[Puppet-dev] puppet node face api

2015-10-20 Thread Corey Osman
Hi, We are trying to create some decommission orchestration scripts and need to perform the following tasks. 1. clean cert 2. remove node from puppetdb 3. remove reports from pe-console Now it looks like puppet node —clean can perform just about all those task and even more so in 2015.02. Ho

[Puppet-dev] implementation of faces

2015-09-21 Thread Corey Osman
Hi, I remember when the puppet 2.7 release came out with support for faces was all the rage. The faces API seemed pretty slick as its a pluggable system that allows the plugin to implement options as well. I am curious if there is any design notes or blog that someone followed in order to cre

Re: [Puppet-dev] Re: utilizing custom type for fact values

2015-09-18 Thread Corey Osman
gt; > Thanks, > > Trevor > > On Thu, Sep 17, 2015 at 6:29 PM, Kylo Ginsberg > wrote: > >> On Thu, Sep 17, 2015 at 11:27 AM, > >> wrote: >> >>> On Wednesday, September 16, 2015 at 10:11:16 PM UTC-5, Corey Osman wrote: >>>> &g

[Puppet-dev] Re: munging the log output from a custom provider

2015-09-18 Thread Corey Osman
Where is this documented or exist in the puppet codebase as this is exactly what I was looking for. On Thursday, September 17, 2015 at 11:48:17 AM UTC-7, Reid Vandewiele wrote: > > On Wednesday, September 16, 2015 at 6:19:27 PM UTC-7, Corey Osman wrote: >> >> >>

[Puppet-dev] utilizing custom type for fact values

2015-09-16 Thread Corey Osman
Is it considered bad practice to make use of a custom provider code to retrieve values for a fact? example: Facter.add("bmc_ip", :timeout => 2) do confine :bmc_device_present => [:true, true] confine :bmc_tools_present => [:true, true] setcode do Puppet::Type.type(:bmc).instances.firs

[Puppet-dev] munging the log output from a custom provider

2015-09-16 Thread Corey Osman
Hi, My custom BMC provider manages the password of the bmc device on a physical system. While the password can be encrypted vi eyaml how can I keep the password from showing up in the reports when the password changes. Basically I don’t want the following to occur. Is there a way to suppress

Re: [Puppet-dev] Puppetconf 2015: pre-summit tea party

2015-09-15 Thread Corey Osman
+1 Sounds tearrific. On Monday, September 14, 2015 at 10:36:56 AM UTC-7, Felix Frank wrote: > > On 09/13/2015 10:17 AM, Erik Dalén wrote: > > Want to join? Throw a +1 in the list so I get a rough idea of how people > > are going to show. > > Count me in :-) > -- You received this message

Re: [Puppet-dev] docker compose or fig configuration for puppet or pe-puppet

2015-06-10 Thread Corey Osman
, puppetdb, postgres, activemq, console, agent) into separate containers. Once I get something stable I'll ping you for some help, since you offered ;) Corey On Wednesday, June 10, 2015 at 6:48:32 AM UTC-4, Gareth Rushgrove wrote: > > On 9 June 2015 at 22:13, Corey Osman > &g

[Puppet-dev] docker compose or fig configuration for puppet or pe-puppet

2015-06-09 Thread Corey Osman
Hi, Has anyone build a docker POC based on a docker-compose or fig? If not is there a vagrant config for a split PE install? Corey -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To unsubscribe from this group and stop receiving emails

[Puppet-dev] Re: detecting manifest parser version

2015-04-23 Thread Corey Osman
15-21-04 20:59, Corey Osman wrote: > > Is there a better way to detect which parser a manifest is using than > > what I have come up with below? > > > > > > https://gist.github.com/logicminds/d3f795f4fa28ed8d0be6 > > > > Your code basically runs pupp

[Puppet-dev] Re: yaml Kwalify schema for hiera files

2015-04-21 Thread Corey Osman
2015 at 2:49:55 PM UTC-7, henrik lindberg wrote: > > On 2015-25-03 20:06, Corey Osman wrote: > > Hi, > > > > Has anybody created a yaml Kwalify schema for hiera files. I would like > to validate my yaml files against an official hiera schema using Kwalify. > S

[Puppet-dev] detecting manifest parser version

2015-04-21 Thread Corey Osman
Is there a better way to detect which parser a manifest is using than what I have come up with below? https://gist.github.com/logicminds/d3f795f4fa28ed8d0be6 Corey -- You received this message because you are subscribed to the Goog

Re: [Puppet-dev] Re: rspec-puppet and local variable values

2015-03-27 Thread Corey Osman
up > refactoring the functions to make everything properly variable which solved > the issue for temporary testing scenarios. > > Thanks, > > Trevor > > On Fri, Mar 27, 2015 at 2:38 PM, Corey Osman > wrote: > >> Coming from regular language testing your

[Puppet-dev] Re: rspec-puppet and local variable values

2015-03-27 Thread Corey Osman
Coming from regular language testing your first thought with puppet is how do I control the flow of code when testing. In normal languages you can mock the functions, getters, setters and possibly instance variables. With puppet its a bit different. You can control the flow of puppet code onl

[Puppet-dev] yaml Kwalify schema for hiera files

2015-03-25 Thread Corey Osman
Hi, Has anybody created a yaml Kwalify schema for hiera files. I would like to validate my yaml files against an official hiera schema using Kwalify. Since the YAML spec varies greatly a schema is required to validate hiera specific keys. Corey -- You received this message because you are

[Puppet-dev] Re: Puppet 4 delivery and upgrades

2014-11-20 Thread Corey Osman
I can only imagine how much time has been lost over the years trying to support ruby 1.8.7. I think this is a great move as long as we can still install puppet using gems under a newer ruby. Will the ffi gem be part of the AIO package? I won't even bother creating a ticket for a bug I just

Re: [Puppet-dev] Re: testing custom types and providers with puppetlabs_spec_helper

2013-09-16 Thread Corey Osman
acts)do {:is_virtual => 'false'} end On Monday, September 16, 2013 4:53:19 AM UTC-7, Andy Parker wrote: > > On Sun, Sep 15, 2013 at 6:50 PM, Corey Osman > > > wrote: > >> Turns out I had a typo: >> >> Puppet::Type.type(:bmc).provide(:ipmitool) do >&

[Puppet-dev] Re: testing custom types and providers with puppetlabs_spec_helper

2013-09-15 Thread Corey Osman
7;) || File.exists?('/dev/ipmi/0') || File.exists?('/dev/ipmidev/0') Corey On Sunday, September 15, 2013 6:20:49 PM UTC-7, Corey Osman wrote: > > Hi, > > I am been trying really hard to test my custom type/provider. Every > example seems to not fit my case

[Puppet-dev] testing custom types and providers with puppetlabs_spec_helper

2013-09-15 Thread Corey Osman
Hi, I am been trying really hard to test my custom type/provider. Every example seems to not fit my case though. Most of the examples only cover the providers or puppet code. My case is a type and provider combined. The puppet_labs_spec_helper has at least helped me out. I have been fo

[Puppet-dev] Re: [Request For Comments] Better SSH key management

2013-02-18 Thread Corey Osman
Not sure if this was mentioned yet but since many environments ssh key management styles will be different, why not make puppet "auto-require" the resource and have it downloaded before compile time. There could be an official key/value map in order to tell puppet which module to use and where

[Puppet-dev] Re: [PATCH/puppet 1/1] (#5528) Add REST API for signing, revoking, retrieving, cleaning certs

2011-04-05 Thread Corey Osman
Horray! I am excited to test out the list of signed certificates. What serialization format would the list of certs be returned as? (PSON, YAML)? Can I have a choice by passing in the format I desire? Corey On Apr 5, 10:47 am, Jacob Helwig wrote: > On Mon, 04 Apr 2011 17:13:02 -0700, Max Mart

[Puppet-dev] Certificate Rest api

2011-03-16 Thread Corey Osman
I see this proposed documentation. What version is this implemented in. https://projects.puppetlabs.com/projects/puppet/wiki/Certificate_Authority_Rest_API I would like to be able to get a list of the hosts with signed certificates. This would mean in order to get all hosts with signed certifi

[Puppet-dev] Re: Yaml output not quite right from puppet api

2011-03-16 Thread Corey Osman
I just removed all the lines that contained !ruby. It seems to work fine after that. Well I am only getting facts right now, I am sure the catalog may require additional effort. tempstring = re.sub('.*\!ruby\/.*','',tempstring) If anyone is interested my git repo is here: git://github.com/log

[Puppet-dev] Re: Yaml output not quite right from puppet api

2011-03-15 Thread Corey Osman
I am very new to yaml so I have to research your suggestions. It sounds like I'll need to create an object for the yaml output to map to though. I'll respond back in the thread once I figure this out. On Mar 15, 6:05 pm, Markus Roberts wrote: > Corey -- > > I mentioned this before in a p

[Puppet-dev] Yaml output not quite right from puppet api

2011-03-15 Thread Corey Osman
I mentioned this before in a previous post but I can't find that post. Anyways, I am using the puppet api rest interface and my python yaml parser doesn't like the output given. Exactly what parser are you guys using to encode your objects into Yaml? I don't know why my parser is choking you the

[Puppet-dev] Re: Help with creating a python puppet module using curl "pycurl" and auth.conf issues

2011-03-15 Thread Corey Osman
# ACL is wide open path / #auth no allow * This finally worked. You were right about the trailing characters. I had a space after no and a space after the *. I removed the space and commented out the auth and I am able to get the data. Now, from my understand when no auth exists it assumes au

[Puppet-dev] Re: Help with creating a python puppet module using curl "pycurl" and auth.conf issues

2011-03-14 Thread Corey Osman
This is what I have in my auth.conf file: path / auth no allow * However I still get this error '/' incorrect authenticated value: no On Mar 14, 4:14 pm, Matt Robinson wrote: > On Mon, Mar 14, 2011 at 12:56 PM, Corey Osman wrote: > > Hi, > > > I am on a quest t

[Puppet-dev] Help with creating a python puppet module using curl "pycurl" and auth.conf issues

2011-03-14 Thread Corey Osman
Hi, I am on a quest to create a python module for puppet in order to use with my application. The whole idea beyond this "pypuppet" module is to just wrap the rest api calls into a python module in order to make it easy for python born apps to integrate with puppet. I have just started testing s

[Puppet-dev] YAML output from api malformed?

2011-02-17 Thread Corey Osman
Is it possible that the output from the api url returns malformed YAML code? I have two YAML parsers that are choking on the same YAML output. I loaded the YAML output into this parser and it returned with an error. http://yaml-online-parser.appspot.com/ My YAML output URL: curl --insecure -H '

[Puppet-dev] Re: puppet api certs

2011-02-17 Thread Corey Osman
your interested: http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";> On Feb 17, 2:30 pm, Luke Kanies wrote: > On Feb 17, 2011, at 2:22 PM, Corey Osman wrote: > > > So if I want to control access I should do so within my webapp which > > would onl

[Puppet-dev] Re: puppet api certs

2011-02-17 Thread Corey Osman
11:42 AM, Corey Osman wrote: > > > > > > > Hi, > > > I am trying to use the puppet api to pull information from the > > puppetmaster via a flash/flex application which runs inside the > > browser.  Because the code is written in  flash/flex there is no >

[Puppet-dev] puppet api certs

2011-02-17 Thread Corey Osman
my browser because the cert the browser is using has never been signed by puppetmaster. Additionally, I don't even know what cert the browser is using and where it is stored. Any ideas? I am using firefox on OS X. However, the client app could be on any flash approved platform. -- Corey