Re: [Puppet Users] Re: Puppet.agent with path
Hi, Thanks! Em qui, 29 de nov de 2018 às 14:29, Ben Ford escreveu: > Rafael, if you're trying to execute scripts with a certain path, you'd > provide that at the resource declaration level, like so: > > exec { 'tar -xf /Volumes/nfs02/important.tar': cwd => '/var/tmp', creates > => '/var/tmp/myfile', path => ['/usr/bin', '/usr/sbin',], } > > See this for more information: > https://puppet.com/docs/puppet/latest/types/exec.html#exec-attribute-path > > On Wed, Nov 28, 2018 at 10:18 AM Eric Sorenson wrote: > >> Sorry Rafael, I don't understand what you're asking. Can you share the >> puppet code that you are trying to use, and the error message you get? >> >> --eric0 >> >> On Wednesday, November 28, 2018 at 5:54:34 AM UTC-8, Rafael Tomelin wrote: >>> >>> Hi, >>> >>> How configure path in puppet.agent. >>> >>> I need path = source /etc/profile . , how configuration this path? >>> -- >>> >>> Atenciosamente, >>> >>> Rafael Tomelin >>> >>> skype: rafael.tomelin >>> >>> E-mail: rafael.tome...@gmail.com >>> >>> RHCE - Red Hat Certified Engineer >>> PPT-205 - Puppet Certified Professional 2017 >>> Zabbix- ZABBIX Certified Specialist >>> LPI3 >>> ITIL v3 >>> >> -- >> 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/5c0f935e-c0ff-4202-b48c-79a316f69c87%40googlegroups.com >> <https://groups.google.com/d/msgid/puppet-users/5c0f935e-c0ff-4202-b48c-79a316f69c87%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/CACkW_L5vqSVtZTkY%2B9HF_7MS7naEbvjSPk8C-wR-BQ98K4cZ9g%40mail.gmail.com > <https://groups.google.com/d/msgid/puppet-users/CACkW_L5vqSVtZTkY%2B9HF_7MS7naEbvjSPk8C-wR-BQ98K4cZ9g%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Atenciosamente, Rafael Tomelin skype: rafael.tomelin E-mail: rafael.tome...@gmail.com RHCE - Red Hat Certified Engineer PPT-205 - Puppet Certified Professional 2017 Zabbix- ZABBIX Certified Specialist LPI3 ITIL v3 -- 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/CAGEUqbBKfQA2iY%2BsngS2Me4QuyK-ErZ92vvVOjG7kGLN%2BS-N%3Dg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] Puppet.agent with path
Hi, How configure path in puppet.agent. I need path = source /etc/profile . , how configuration this path? -- Atenciosamente, Rafael Tomelin skype: rafael.tomelin E-mail: rafael.tome...@gmail.com RHCE - Red Hat Certified Engineer PPT-205 - Puppet Certified Professional 2017 Zabbix- ZABBIX Certified Specialist LPI3 ITIL v3 -- 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/CAGEUqbD%2BxnwdZFZ8j1niZqoOn%2BSev77ubWayZTH_qtRYYJMXmg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] Apache proxy_pass hiera - yaml
Hi, How can configuration proxy_apps <https://forge.puppet.com/puppetlabs/apache#proxy_pass> with hiera - yaml? I have multiple proxy_pass, not run. Example to migrate for YAML: proxy_pass => [ { 'path' => '/a', 'url' => 'http://backend-a/' }, { 'path' => '/b', 'url' => 'http://backend-b/' }, { 'path' => '/c', 'url' => 'http://backend-a/c', 'params' => {'max'=>20, 'ttl'=>120, 'retry'=>300}}, { 'path' => '/l', 'url' => 'http://backend-xy', 'reverse_urls' => ['http://backend-x', 'http://backend-y'] }, { 'path' => '/d', 'url' => 'http://backend-a/d', 'params' => { 'retry' => '0', 'timeout' => '5' }, }, { 'path' => '/e', 'url' => 'http://backend-a/e', 'keywords' => ['nocanon', 'interpolate'] }, { 'path' => '/f', 'url' => 'http://backend-f/', 'setenv' => ['proxy-nokeepalive 1','force-proxy-request-1.0 1']}, { 'path' => '/g', 'url' => 'http://backend-g/', 'reverse_cookies' => [{'path' => '/g', 'url' => 'http://backend-g/',}, {'domain' => 'http://backend-g', 'url' => 'http:://backend-g',},], }, { 'path' => '/h', 'url' => 'http://backend-h/h', 'no_proxy_uris' => ['/h/admin', '/h/server-status'] }, ], -- Atenciosamente, Rafael Tomelin skype: rafael.tomelin E-mail: rafael.tome...@gmail.com RHCE - Red Hat Certified Engineer PPT-205 - Puppet Certified Professional 2017 Zabbix- ZABBIX Certified Specialist LPI3 ITIL v3 -- 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/CAGEUqbC0B4%2Beuuj2AETeaT86KuTEn%2BhWvKvaWgkPOauFN9y0Rg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] modulo, exec or provider customization
Folks, I was given a task to deploy and update an application via Puppet, yes it must be via Puppet at that time. A company has units scattered around the world, about 32 units running the same application on different servers. One of the characteristics is that sometimes there are some types of SQL (computer) files and must follow an order: new_table.sql alter_table_YYMD.sql delete_table.sql procedure_table.sql view_table.sql In addition, some files are required as system files (js, img, css, php, tpl, html), since the directories are already correct. My biggest problem is in the SQL execution order and then in creating a provider. Ideally, would you create a provider for each type of SQL or one that all SQL? -- Atenciosamente, Rafael Tomelin skype: rafael.tomelin E-mail: rafael.tome...@gmail.com RHCE - Red Hat Certified Engineer PPT-205 - Puppet Certified Professional 2017 Zabbix- ZABBIX Certified Specialist LPI3 ITIL v3 -- 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/CAGEUqbBx17yQa3hVpmf%2BQHvyOFL6dL6PzYwgwHKxiak38ZhmLA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Unknown resource type after Upgrade
Hi dear, This link the puppet6 release notes. https://puppet.com/docs/puppet/6.0/release_notes.html#deprecations - The Nagios types no longer ship with Puppet, and are now available as the puppetlabs/nagios_core module from the Forge. Em qui, 27 de set de 2018 às 07:14, Christian Reiß < reiss.symgen...@gmail.com> escreveu: > Hey folks, > > I am currently upgrading to 6.x on a test setup using my live puppet code; > trying to get it to work with 6.x. > One weird issue I am getting is that alle default definitions (upper case > classes) are faulting: > > Error: Could not retrieve catalog from remote server: Error 500 on SERVER: > Server Error: Evaluation Error: Resource type not found: Nagios_service ( > file: /etc/puppetlabs/code/environments/production/modules/pn_icinga/ > manifests/client/checks.pp, line: 83, column: 3) on node outleapt.test > Warning: Not using cache on failed catalog > Error: Could not retrieve catalog; skipping run > > > > The corresponding manifest looks like this: > > Nagios_service { > check_period => '24x7', > ensure=> $::pn_icinga::client::installed, > host_name => $::trusted['certname'], > initial_state => 'o', > max_check_attempts=> '3', > notification_interval => '5', > notification_options => 'w,u,c,r', > notification_period => $notification_period, > notifications_enabled => '0', > [...] > } > > Did I miss a regression somewhere? > Any help is greatly appreciated! > > -Chris. > > -- > 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/bde5ac1d-f1ef-4454-885d-b499f22062c8%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-users/bde5ac1d-f1ef-4454-885d-b499f22062c8%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Atenciosamente, Rafael Tomelin skype: rafael.tomelin E-mail: rafael.tome...@gmail.com RHCE - Red Hat Certified Engineer PPT-205 - Puppet Certified Professional 2017 Zabbix- ZABBIX Certified Specialist LPI3 ITIL v3 -- 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/CAGEUqbAZL5VeQzR9JS1JQEUEqrbrmDDm0iWD%2BpD9AawruKv%3Dkg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Custom type and provider
Hi, Thanks, solved! Em seg, 24 de set de 2018 às 04:40, David Schmitt escreveu: > Hi Rafael, > > on puppet versions prior to puppet6, you need to install the > puppet-resource_api gem to support the provider. You can use the > puppetlabs-resource_api <https://forge.puppet.com/puppetlabs/resource_api> > module for that. > > Cheers, David > > On Sun, Sep 23, 2018 at 3:19 AM Rafael Tomelin > wrote: > >> Hi David Schmitt, >> >> I create de new module, class and provider with pdk the according this >> site puppet. My puppet is version 'puppet --version . 5.5.6'. >> >> But, the return error: *Could not autoload puppet/type/foo: no such file >> to load -- puppet/resource_api * >> >> >> *My type is:* >> >> *cat lib/puppet/type/foo.rb * >> >> require 'puppet/resource_api' >> >> >> Puppet::ResourceApi.register_type( >> >> name: 'foo', >> >> docs: <<-EOS, >> >> This type provides Puppet with the capabilities to manage ... >> >> EOS >> >> features: [], >> >> attributes: { >> >> ensure: { >> >> type:'Enum[present, absent]', >> >> desc:'Whether this resource should be present or absent on the >> target system.', >> >> default: 'present', >> >> }, >> >> name:{ >> >> type: 'String', >> >> desc: 'The name of the resource you want to manage.', >> >> behaviour: :namevar, >> >> }, >> >> }, >> >> ) >> >> >> *My provider:* >> >> *cat lib/puppet/provider/foo/foo.rb * >> >> require 'puppet/resource_api/simple_provider' >> >> >> # Implementation for the foo type using the Resource API. >> >> class Puppet::Provider::Foo::Foo < Puppet::ResourceApi::SimpleProvider >> >> def get(_context) >> >> [ >> >> { >> >> name: 'foo', >> >> ensure: 'present', >> >> }, >> >> { >> >> name: 'bar', >> >> ensure: 'present', >> >> }, >> >> ] >> >> end >> >> >> def create(context, name, should) >> >> context.notice("Creating '#{name}' with #{should.inspect}") >> >> end >> >> >> def update(context, name, should) >> >> context.notice("Updating '#{name}' with #{should.inspect}") >> >> end >> >> >> def delete(context, name) >> >> context.notice("Deleting '#{name}'") >> >> end >> >> end >> >> >> *My init.pp* >> >> *class first_type {* >> >> foo{ 'my_type': >> >> ensure => present, >> >> } >> >> } >> >> >> What`s problem : *Could not autoload puppet/type/foo: no such file to >> load -- puppet/resource_api * >> >> The provider write the ruby, is possible create provider with python? If >> yes, is change ruby to python? >> >> >> >> Em sáb, 22 de set de 2018 às 05:29, David Schmitt < >> david.schm...@puppet.com> escreveu: >> >>> Hi Rafael, >>> >>> if you are just starting out with this, I'd highly recommend looking >>> into the Resource API. It makes the development of types much easier, is a >>> supported part of this week's puppet 6 release, and available as a separate >>> download for previous puppet versions. The PDK also has support for getting >>> you started with a ready to go skeleton using 'pdk new provider'. >>> >>> See https://puppet.com/docs/puppet/6.0/custom_resources.html for all >>> the details. >>> >>> Cheers, David >>> >>> On Fri, Sep 21, 2018 at 9:34 PM Rafael Tomelin >>> wrote: >>> >>>> Hi guys, >>>> >>>> I am creating a type in custom provider, but I am not able to >>>> understand the following question. >>>> >>>> I created a basic type to understand the concept of things, as follows: >>>> Puppet::Type.newtype(:mydir) do >>>> @doc = "First custom type." >>>> >>>>
Re: [Puppet Users] Custom type and provider
Hi David Schmitt, I create de new module, class and provider with pdk the according this site puppet. My puppet is version 'puppet --version . 5.5.6'. But, the return error: *Could not autoload puppet/type/foo: no such file to load -- puppet/resource_api * *My type is:* *cat lib/puppet/type/foo.rb * require 'puppet/resource_api' Puppet::ResourceApi.register_type( name: 'foo', docs: <<-EOS, This type provides Puppet with the capabilities to manage ... EOS features: [], attributes: { ensure: { type:'Enum[present, absent]', desc:'Whether this resource should be present or absent on the target system.', default: 'present', }, name:{ type: 'String', desc: 'The name of the resource you want to manage.', behaviour: :namevar, }, }, ) *My provider:* *cat lib/puppet/provider/foo/foo.rb * require 'puppet/resource_api/simple_provider' # Implementation for the foo type using the Resource API. class Puppet::Provider::Foo::Foo < Puppet::ResourceApi::SimpleProvider def get(_context) [ { name: 'foo', ensure: 'present', }, { name: 'bar', ensure: 'present', }, ] end def create(context, name, should) context.notice("Creating '#{name}' with #{should.inspect}") end def update(context, name, should) context.notice("Updating '#{name}' with #{should.inspect}") end def delete(context, name) context.notice("Deleting '#{name}'") end end *My init.pp* *class first_type {* foo{ 'my_type': ensure => present, } } What`s problem : *Could not autoload puppet/type/foo: no such file to load -- puppet/resource_api * The provider write the ruby, is possible create provider with python? If yes, is change ruby to python? Em sáb, 22 de set de 2018 às 05:29, David Schmitt escreveu: > Hi Rafael, > > if you are just starting out with this, I'd highly recommend looking into > the Resource API. It makes the development of types much easier, is a > supported part of this week's puppet 6 release, and available as a separate > download for previous puppet versions. The PDK also has support for getting > you started with a ready to go skeleton using 'pdk new provider'. > > See https://puppet.com/docs/puppet/6.0/custom_resources.html for all the > details. > > Cheers, David > > On Fri, Sep 21, 2018 at 9:34 PM Rafael Tomelin > wrote: > >> Hi guys, >> >> I am creating a type in custom provider, but I am not able to understand >> the following question. >> >> I created a basic type to understand the concept of things, as follows: >> Puppet::Type.newtype(:mydir) do >> @doc = "First custom type." >> >> ensurable do >> defaultvalues >> defaultto :present >> end >> >> newparam(:name, :namevar => true) do >> end >> >> newparam(:install_location) do >> end >> end >> >> >> After creating the provider, but does not recognize the same and displays >> the following error: >> Error: Could not find a suitable provider for mydir >> Notice: Applied catalog in 0.63 seconds >> >> Puppet::Type.type(:mydir).provide(:linux) do >> >> defaultfor :operatingsystem => :linux >> confine:operatingsystem => :linux >> >> commands :mkdir => "mkdir" >> commands :rm => "rm" >> >> def exists? >> Puppet.info("checking if is already deployed") >> deploy_dir = "#{resource[:install_location]}/#{resource[:name]}" >> >> File.directory?(deploy_dir) and Dir.entries(deploy_dir).size > 2 >> end >> >> def create >> Puppet.info("Deploying the appliction") >> deploy_dir = "#{resource[:install_location]}/#{resource[:name]}" >> >> mkdir('-p', deploy_dir) >> end >> >> def destroy >> Puppet.info("Removing the appliction") >> deploy_dir = "#{resource[:install_location]}/#{resource[:name]}" >> rm('-rf',deploy_dir) >> end >> end >> >> What I did not envisage is how Puppet identifies the provider to be >> used in the OS? >> -- >> >> Atenciosamente, >> >> Rafael Tomelin >> >> skype: rafael.
Re: [Puppet Users] Custom type and provider
Yes, Esuqeci had already altered or removed the following lines: defaultfor: operatingsystem =>: linux confine: operatingsystem =>: linux But it had no effect Em sex, 21 de set de 2018 às 17:52, Nick Lewis escreveu: > On Fri, Sep 21, 2018 at 1:34 PM Rafael Tomelin > wrote: > >> Hi guys, >> >> I am creating a type in custom provider, but I am not able to understand >> the following question. >> >> I created a basic type to understand the concept of things, as follows: >> Puppet::Type.newtype(:mydir) do >> @doc = "First custom type." >> >> ensurable do >> defaultvalues >> defaultto :present >> end >> >> newparam(:name, :namevar => true) do >> end >> >> newparam(:install_location) do >> end >> end >> >> >> After creating the provider, but does not recognize the same and displays >> the following error: >> Error: Could not find a suitable provider for mydir >> Notice: Applied catalog in 0.63 seconds >> >> Puppet::Type.type(:mydir).provide(:linux) do >> >> defaultfor :operatingsystem => :linux >> confine:operatingsystem => :linux >> >> commands :mkdir => "mkdir" >> commands :rm => "rm" >> >> def exists? >> Puppet.info("checking if is already deployed") >> deploy_dir = "#{resource[:install_location]}/#{resource[:name]}" >> >> File.directory?(deploy_dir) and Dir.entries(deploy_dir).size > 2 >> end >> >> def create >> Puppet.info("Deploying the appliction") >> deploy_dir = "#{resource[:install_location]}/#{resource[:name]}" >> >> mkdir('-p', deploy_dir) >> end >> >> def destroy >> Puppet.info("Removing the appliction") >> deploy_dir = "#{resource[:install_location]}/#{resource[:name]}" >> rm('-rf',deploy_dir) >> end >> end >> >> What I did not envisage is how Puppet identifies the provider to be >> used in the OS? >> > > It looks like the trouble here is that "linux" isn't a valid value for > operatingsystem. If you look at some examples in puppet, you can see that > common values of operatingsystem are like "fedora", "centos", "suse". The > fact you want to use here is osfamily, which *is* "linux". > > >> -- >> >> Atenciosamente, >> >> Rafael Tomelin >> >> skype: rafael.tomelin >> >> E-mail: rafael.tome...@gmail.com >> >> RHCE - Red Hat Certified Engineer >> PPT-205 - Puppet Certified Professional 2017 >> Zabbix- ZABBIX Certified Specialist >> LPI3 >> ITIL v3 >> >> -- >> 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/CAGEUqbCtgp2bo7CN8STqDxq5L4WZLCJXNT%2Buq7-qzpvVYaL3%2Bg%40mail.gmail.com >> <https://groups.google.com/d/msgid/puppet-users/CAGEUqbCtgp2bo7CN8STqDxq5L4WZLCJXNT%2Buq7-qzpvVYaL3%2Bg%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/CANa5_qJXKBnJQKH-6zW7mr3Osk%2BrwLPvMXg5zX_CwbN3fP9BAw%40mail.gmail.com > <https://groups.google.com/d/msgid/puppet-users/CANa5_qJXKBnJQKH-6zW7mr3Osk%2BrwLPvMXg5zX_CwbN3fP9BAw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Atenciosamente, Rafael Tomelin skype: rafael.tomelin E-mail: rafael.tome...@gmail.com RHCE - Red Hat Certified Engineer PPT-205 - Puppet Certified Professional 2017 Zabbix- ZABBIX Certified Specialist LPI3 ITIL v3 -- 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/CAGEUqbACVDjowt3yYWzKG7GFzP%2BjZKmxrrr5jg4P4g01dfciFQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] Custom type and provider
Hi guys, I am creating a type in custom provider, but I am not able to understand the following question. I created a basic type to understand the concept of things, as follows: Puppet::Type.newtype(:mydir) do @doc = "First custom type." ensurable do defaultvalues defaultto :present end newparam(:name, :namevar => true) do end newparam(:install_location) do end end After creating the provider, but does not recognize the same and displays the following error: Error: Could not find a suitable provider for mydir Notice: Applied catalog in 0.63 seconds Puppet::Type.type(:mydir).provide(:linux) do defaultfor :operatingsystem => :linux confine:operatingsystem => :linux commands :mkdir => "mkdir" commands :rm => "rm" def exists? Puppet.info("checking if is already deployed") deploy_dir = "#{resource[:install_location]}/#{resource[:name]}" File.directory?(deploy_dir) and Dir.entries(deploy_dir).size > 2 end def create Puppet.info("Deploying the appliction") deploy_dir = "#{resource[:install_location]}/#{resource[:name]}" mkdir('-p', deploy_dir) end def destroy Puppet.info("Removing the appliction") deploy_dir = "#{resource[:install_location]}/#{resource[:name]}" rm('-rf',deploy_dir) end end What I did not envisage is how Puppet identifies the provider to be used in the OS? -- Atenciosamente, Rafael Tomelin skype: rafael.tomelin E-mail: rafael.tome...@gmail.com RHCE - Red Hat Certified Engineer PPT-205 - Puppet Certified Professional 2017 Zabbix- ZABBIX Certified Specialist LPI3 ITIL v3 -- 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/CAGEUqbCtgp2bo7CN8STqDxq5L4WZLCJXNT%2Buq7-qzpvVYaL3%2Bg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] sslv3 alert certificate revoked on newly spawned servers
Hi Dear, Forword options: 1) update the OS; 2) date sync; 3) Key is exist in puppetserver; 4) generate new ssl - rm -rf /etc/puppetlabs/puppet/ssl Em seg, 7 de ago de 2017 às 12:11, Eziera Yvanne Gabriel < ezieraezi...@gmail.com> escreveu: > Hello, > > > <https://lh3.googleusercontent.com/-IUaMPrRe7EQ/WYgez7NW-wI/Dx8/pSSFGYxQzYcsHlQ29o1RclF-aXcuFERogCLcBGAs/s1600/2017-08-07%2B16.02.36.jpg> > > I always encounter this error when executing puppet agent -t --debug on > our newly spawned servers. Tried everything (except for puppetmaster > restart) that I saw on the Internet with no success. > > But with old servers with signed certs (before this error occur), puppet > agent runs are still successful. > > -- > 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/e51442a7-0f4b-4889-a850-db1bc745da1c%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-users/e51442a7-0f4b-4889-a850-db1bc745da1c%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Atenciosamente, Rafael Tomelin skype: rafael.tomelin E-mail: rafael.tome...@gmail.com RHCE - Red Hat Certified Engineer Zabbix - ZABBIX Certified Specialist LPI3 ITIL v3 -- 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/CAGEUqbCoLnmxsyTbTE-bB5gNwYK8ur_HTj6Da%3DjKR2CWfPHNMQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] Erro Duplicate declaration
Boa noite pessoal, Estou criando um modulo para a instalação e configuração dos backups com o bacula. A estrutura do meu módlo inicial é: director.pp storage.pp client.pp console.pp init.pp O problema que as 4 primeiras classes usam na sua configuração campos iguais, porém em arquivos diferentes. Quando estou incluindo o modulo no meu host está dando o erro de duplicação de declaração "Duplicate declaration". Mas como resolver se são em classes diferentes e em arquivos diferentes? Inclusive posso ter apenas uma classe no servidor (que não da problema) ou todas as classes (onde ocorre o problema). Alguém sabe como posso corrigir esse tipo de duplicação, ou tem uma outra idéia de como fazer esse módulo.? -- Atenciosamente, Rafael Tomelin skype: rafael.tomelin E-mail: rafael.tome...@gmail.com RHCE - Red Hat Certified Engineer Zabbix - ZABBIX Certified Specialist LPI3 ITIL v3 -- 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/CAGEUqbANMEt%3DU_04EX5HNdJBxwzrLoUSdFZwtnzcr7%2BtMNzJ4Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] Facter global
Hi dear, how create facter global in puppet? I need create password in one server (mysql) and other server (apache/php) need to know password. How need this password configured in mysql server? -- Atenciosamente, Rafael Tomelin skype: rafael.tomelin E-mail: rafael.tome...@gmail.com RHCE - Red Hat Certified Engineer Zabbix - ZABBIX Certified Specialist LPI3 ITIL v3 -- 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/CAGEUqbCh37Vc1MFa9mdkDMFnR7408JFaTLHSnnNwrRJgf7tmxA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Puppet erb template create loop
Hi dear, Very thanks! Em qui, 16 de fev de 2017 às 18:09, Henrik Lindberg < henrik.lindb...@puppet.com> escreveu: > On 13/02/17 18:05, Rafael Tomelin wrote: > > Hi dear, > > > > I is create a module and need loop in puppet class and template > > > > > > The my class step is: > > 1) My class have array declared; > > $pools = [ > > { > > name => 'PoolDiario', > > poolType => 'Backup', > > recycle=> 'yes', > > autoPrune => 'yes', > > volumeRetention=> '30 days', > > maximumVolumeBytes => '1G', > > maximumVolumes => '100', > > labelFormat=> 'Local-' > > } > > , > > { > > name => 'PoolDiario2', > > poolType => 'Backup2', > > recycle=> 'yes', > > autoPrune => 'yes', > > volumeRetention=> '20 days', > > maximumVolumeBytes => '5G', > > maximumVolumes => '10', > > labelFormat=> 'Local2' > > } > > ]) > > > > 2) The array is create file; > > example: > > > > count array$pools > > > > $teste = $pools[COUNT]['name'] > > > > #LOOP > > file { "/etc/bacula/pool/pool_$teste.conf": > > ensure => 'file', > > owner => 'bacula', > > group => 'bacula', > > content => template('bacula/director/pool_conf.erb') > > } > > > > > > 3) Template loop get array. > > Pool { > > <% pools.each do |pool| -%> > > Name = "<%= pool['name'] %>" > > Pool Type = "<%= pool['poolType'] %>" > > Recycle = <%= pool['recycle'] %> > > AutoPrune = <%= pool['autoPrune'] %> > > Volume Retention = "<%= pool['volumeRetention'] %>" > > Maximum Volume Bytes = "<%= pool['maximumVolumeBytes'] %>" > > Maximum Volumes = <%= pool['maximumVolumes'] %> > > Label Format = "<%= pool['labelFormat'] %>" > > > > <% end -%> > > } > > > > > > But this create Pool to array. > > > > I can make this module? > > > > Puppet 4.x (and puppet 3.x with future parser) supports iteration with > functions such as each, map, reduce (and many more). That should enable > you to do what you want. > > - henrik > > > > > -- > > 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 > > <mailto:puppet-users+unsubscr...@googlegroups.com>. > > To view this discussion on the web visit > > > https://groups.google.com/d/msgid/puppet-users/b76ca740-d7f6-4dd6-8079-43bc72700c06%40googlegroups.com > > < > https://groups.google.com/d/msgid/puppet-users/b76ca740-d7f6-4dd6-8079-43bc72700c06%40googlegroups.com?utm_medium=email&utm_source=footer > >. > > For more options, visit https://groups.google.com/d/optout. > > > -- > > Visit my Blog "Puppet on the Edge" > http://puppet-on-the-edge.blogspot.se/ > > -- > 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/0554267c-29cc-5bda-a6b2-2df9f1c9dc82%40puppet.com > . > For more options, visit https://groups.google.com/d/optout. > -- Atenciosamente, Rafael Tomelin skype: rafael.tomelin E-mail: rafael.tome...@gmail.com RHCE - Red Hat Certified Engineer Zabbix - ZABBIX Certified Specialist LPI3 ITIL v3 -- 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/CAGEUqbC6Qy9xrkN18GjB4Ejn5Qz3yMjid%2BV5fGERxJBu56HJ6Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] Puppet erb template create loop
Hi dear, I is create a module and need loop in puppet class and template The my class step is: 1) My class have array declared; $pools = [ { name => 'PoolDiario', poolType => 'Backup', recycle=> 'yes', autoPrune => 'yes', volumeRetention=> '30 days', maximumVolumeBytes => '1G', maximumVolumes => '100', labelFormat=> 'Local-' } , { name => 'PoolDiario2', poolType => 'Backup2', recycle=> 'yes', autoPrune => 'yes', volumeRetention=> '20 days', maximumVolumeBytes => '5G', maximumVolumes => '10', labelFormat=> 'Local2' } ]) 2) The array is create file; example: count array$pools $teste = $pools[COUNT]['name'] #LOOP file { "/etc/bacula/pool/pool_$teste.conf": ensure => 'file', owner => 'bacula', group => 'bacula', content => template('bacula/director/pool_conf.erb') } 3) Template loop get array. Pool { <% pools.each do |pool| -%> Name = "<%= pool['name'] %>" Pool Type = "<%= pool['poolType'] %>" Recycle = <%= pool['recycle'] %> AutoPrune = <%= pool['autoPrune'] %> Volume Retention = "<%= pool['volumeRetention'] %>" Maximum Volume Bytes = "<%= pool['maximumVolumeBytes'] %>" Maximum Volumes = <%= pool['maximumVolumes'] %> Label Format = "<%= pool['labelFormat'] %>" <% end -%> } But this create Pool to array. I can make this module? -- 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/b76ca740-d7f6-4dd6-8079-43bc72700c06%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] Puppet with foreman-proxy
Hi people, I'm instalation puppet in server01 and the foreman-proxy and the server02 instalation the foreman server. My problem is not pupulate the hosts in foreman server and i not see debug connections between server. My instalation for module the puppet "theforeman-foreman_proxy" Help me please -- 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/CAGEUqbAbwnS90eLMcfcO2Cm4Xp4RkCCmKVJW4zz8e0mveHaP9w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] Dependencies modules
Hi people, My name is Rafael, i working with puppet, but in small environment. I will implement the puppet in large environment. The company has 45 affiliates and each unit have 1 firewall, 1 proxy, 1 AD, 1 VMWARE, Zabbix proxy, I would like the create module with all information the units (affiliates) e after using dependencie the others modules. My idea create the example module: puppet module generate client-affiliates /etc/puppet/modules/client-affiliates/manifests/params.pp The params.pp, have all informations: ip dns domain network ip proxy ip firewall ip ntp or /etc/puppet/modules/client-affiliates/manifests/network.pp /etc/puppet/modules/client-affiliates/manifests/proxy.pp the archives, the information by service. And with using the others modules these with variables? -- 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/CAGEUqbCRAGnoPHguGhdbJ2jYv7TNE%3D9rUmuOjNamZEnJMtQBvA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] help dependency packages
Hi, Which option do I use to force installation of dependencies of a package? Made as follows, but appears me an error: CONF package {"bacula-common": Ensure => installed, force => true, } ERROR puppet agent - test Info: Retrieving plugin Info: Loading facts in / var / lib / puppet / lib / facter / facter_dot_d.rb Info: Loading facts in / var / lib / puppet / lib / facter / pe_version.rb Info: Loading facts in / var / lib / puppet / lib / facter / root_home.rb Info: Loading facts in / var / lib / puppet / lib / facter / puppet_vardir.rb Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Invalid parameter force at / etc / puppet / modules / bacula-server / manifests / init.pp: 10 on node srvbkp.teclinux.com Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run What can be this error? -- Att, Rafael Tomelin Tel.: 51-84104084 Skype: rafael.tomelin LPI ID: LPI000191271 -- 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/CAGEUqbD8NWgHPipkWv6opZO0jF3WqVSDp9abiONDh9hdG%3DS8Mg%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Import class module?
hi people, I have my puppet installed, with structure forward: manifests nodes/ site.pp init.pp classes/ modules test manifests init.pp class_test.pp files service.conf templates template.erb templates files I would like to know how to import the class module test (class_test.pp)? I want to make default for all classes of modules in /etc/puppet/manifests/site.pp?? -- Att, Rafael Tomelin Tel.: 51-84104084 Skype: rafael.tomelin LPI ID: LPI000191271 -- 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 post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] help log error
All, Watch about is error? puppet agent --test Warning: Unable to fetch my node definition, but the agent run will continue: Warning: Error 403 on SERVER: Forbidden request: puppet(192.168.1.133) access to /node/puppet.tomelin.local [find] at :115 Info: Retrieving plugin Error: /File[/var/lib/puppet/lib]: Failed to generate additional resources using 'eval_generate: Error 403 on SERVER: Forbidden request: puppet(192.168.1.133) access to /file_metadata/plugins [search] at :115 Error: /File[/var/lib/puppet/lib]: Could not evaluate: Error 403 on SERVER: Forbidden request: puppet(192.168.1.133) access to /file_metadata/plugins [find] at :115 Could not retrieve file metadata for puppet://puppet.tomelin.local/plugins: Error 403 on SERVER: Forbidden request: puppet(192.168.1.133) access to /file_metadata/plugins [find] at :115 Error: Could not retrieve catalog from remote server: Error 403 on SERVER: Forbidden request: puppet(192.168.1.133) access to /catalog/puppet.tomelin.local [find] at :115 Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run Error: Could not send report: Error 403 on SERVER: Forbidden request: puppet(192.168.1.133) access to /report/puppet.tomelin.local [save] at :115 -- Att, Rafael Tomelin Tel.: 51-84104084 Skype: rafael.tomelin LPI ID: LPI000191271 -- 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 post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Help install and sign certtificate
people, The problem this time to generate the certificate showing that the following errors PUPPET MASTER [root @ puppet puppet-server] # puppetca - list [root @ puppet puppet-server] # puppetca - list - all Puppet-agent03.domain + (C0: 20:0 C: CA: 0D: CE: 0B: B0: FF: 71:51:73:5 B: 16: B6:00) + Puppet-server.domain (7D: 2A: 88:08:99: EA: B8: 2B: 33:63: E8: 74:8 B: 04:7 C: 67) puppetca - sign-puppet agent03.domain err: Could not call sign: Could not find certificate request for puppet- agent03.domain PUPPET CLIENT puppet agent - server puppet-server - waitforcert 60 - test notice: Ignoring - listen on onetime run err: Could not retrieve catalog from remote server: Server hostname 'puppet -server'server certificate did not match, expected one of server.domain- puppet, puppet,puppet.domain warning: Not using cache on failed catalog err: Could not retrieve catalog, skipping run err: Could not send report: Server hostname 'puppet-server' server certificate did not match, expected one of server.domain-puppet, puppet, puppet.domain What can be the problem? -- Att, Rafael Tomelin Tel.: 51-84104084 Skype: rafael.tomelin LPI ID: LPI000191271 -- 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 to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.