Re: [Puppet Users] Problem in looking up key value from hieradata
Thanks you sir! It worked great:) On Mon, Jan 30, 2017 at 6:33 PM, Bart-Jan Vrielink wrote: > Hello, > > > There are a few issues with your example that need to be fixed, to make it > work. > > As a start, you need to prefix certain keywords in /etc/hiera.yaml with a > colon (:). I have tested using this setup: > > --- > :backends: > - yaml > :hierarchy: > - node/%{::fqdn} > - "%{::environment}" > - global > :yaml: > :datadir: /etc/puppet/hieradata > > Apart from that, you are querying hiera using the node=puppetmaster fact, > but in /etc/hiera.yaml you are using the fact fqdn as one of the hierarchy > parts. So, switching to using 'hiera webserver ::fqdn=puppetmaster' should > work. > > > -Original message- > *From:* Maruti Gangumolu > *Sent:* Saturday 28th January 2017 10:02 > *To:* Puppet Users > *Subject:* [Puppet Users] Problem in looking up key value from hieradata > > Hi All, > > I want to integrate hiera with puppet conifguration tool for managing my > data > > This is my setup that I have > > puppetmaster version = 3.6.2 > hiera version = 1.3.4 > > This is what i defined in my puppet.conf configuration file of puppetmaster > > hiera_config = /etc/puppet/hiera.yaml > > This is how my hiera.yaml looks... > > --- > backends: > - yaml > hierarchy: > - node/%{::fqdn} > - "%{::environment}" > - global > yaml: > datadir: /etc/puppet/hieradata > > cd /etc/puppet/hieradata/node > > [root@puppetmaster node]# cat puppetmaster.yaml > --- > webserver: puppetmaster > > when trying to lookup hiera key value, I'm getting nil value. Could you > please help me where I'm making mistakes? > > [root@puppetmaster node]# hiera -d webserver ::node=puppetmaster > DEBUG: 2017-01-28 14:26:46 +0530: Hiera YAML backend starting > DEBUG: 2017-01-28 14:26:46 +0530: Looking up webserver in YAML backend > DEBUG: 2017-01-28 14:26:46 +0530: Looking for data source defaults > DEBUG: 2017-01-28 14:26:46 +0530: Cannot find datafile > /var/lib/hiera/defaults.yaml, skipping > DEBUG: 2017-01-28 14:26:46 +0530: Looking for data source global > DEBUG: 2017-01-28 14:26:46 +0530: Cannot find datafile > /var/lib/hiera/global.yaml, skipping > nil > > > Thanks, > Maruti. > > > -- > 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/921fe6ed-1386-4684-bf0a-3e2f626df8d0%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-users/921fe6ed-1386-4684-bf0a-3e2f626df8d0%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 a topic in the > Google Groups "Puppet Users" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/puppet-users/VEFQf3sWRys/unsubscribe. > To unsubscribe from this group and all its topics, 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/zarafa.588f39a7.20ad.287536a667ca920a%40anjie. > dontpanic.nl > <https://groups.google.com/d/msgid/puppet-users/zarafa.588f39a7.20ad.287536a667ca920a%40anjie.dontpanic.nl?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/CAKu269gc-bGtSHhZXv2ew6da41RYsamK9tRk%2BwEyV_Nk%2BcL2%2BA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] Problem in looking up key value from hieradata
Hi All, I want to integrate hiera with puppet conifguration tool for managing my data This is my setup that I have puppetmaster version = 3.6.2 hiera version = 1.3.4 This is what i defined in my puppet.conf configuration file of puppetmaster hiera_config = /etc/puppet/hiera.yaml This is how my hiera.yaml looks... --- backends: - yaml hierarchy: - node/%{::fqdn} - "%{::environment}" - global yaml: datadir: /etc/puppet/hieradata cd /etc/puppet/hieradata/node [root@puppetmaster node]# cat puppetmaster.yaml --- webserver: puppetmaster when trying to lookup hiera key value, I'm getting nil value. Could you please help me where I'm making mistakes? [root@puppetmaster node]# hiera -d webserver ::node=puppetmaster DEBUG: 2017-01-28 14:26:46 +0530: Hiera YAML backend starting DEBUG: 2017-01-28 14:26:46 +0530: Looking up webserver in YAML backend DEBUG: 2017-01-28 14:26:46 +0530: Looking for data source defaults DEBUG: 2017-01-28 14:26:46 +0530: Cannot find datafile /var/lib/hiera/defaults.yaml, skipping DEBUG: 2017-01-28 14:26:46 +0530: Looking for data source global DEBUG: 2017-01-28 14:26:46 +0530: Cannot find datafile /var/lib/hiera/global.yaml, skipping nil Thanks, Maruti. -- 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/921fe6ed-1386-4684-bf0a-3e2f626df8d0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] How to install tomcat silenlty using puppet on Windows 7
Hi Felix, I was able to resolve the issue by specifying the right modulepath option in the puppet apply command. Thanks, Maruti. On Fri, Feb 12, 2016 at 4:41 AM, Felix Frank < felix.fr...@alumni.tu-berlin.de> wrote: > On 01/28/2016 12:22 PM, Maruti Gangumolu wrote: > >> Thanks Dirk! It worked. I'm still facing with module class file. When I'm >> invoking site.pp -> nodes.pp -> init.pp manifest files I'm getting an error >> that apache class is not found. Could you please help me with it? >> >> # Manage apache tomcat v8 application server >> class apache { >> package { 'Tomcat8' : >> ensure => present, >> source => 'C:/Maruti/Puppet/apache-tomcat-8.0.30.exe', >> install_options => ['/S','/D=C:\Maruti\Puppet\apache-tomcat-8'], >> description => 'Installing tomcat v8.0.30 on windows system', >> } >> } >> > > Hi, > > where did you create that `class apache`? > > Ideally, you should put it into a custom module such as 'site' or 'local' > and call it local::apache. It might even go into your profiles module as > profile::apache. > > Have you completed the training VM course? > > HTH, > Felix > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Puppet Users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/puppet-users/7uqvM8X794Q/unsubscribe. > To unsubscribe from this group and all its topics, 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/56BD1505.7030607%40Alumni.TU-Berlin.de > . > > 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/CAKu269ixDXi5%3DaJDOZJYwJzGNxvdGmEOYSWX_P1%2BPJCEi6PJ2Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Error: Could not find class apache
Thanks All, Finally it worked for me. I gave wrong path for modulepath. Thanks, Maruti. On Thu, Jan 28, 2016 at 1:48 AM, Maruti Gangumolu < maruti.gangum...@gmail.com> wrote: > The behaviour was same! > -- > From: Frederik Bjerggaard Nielsen > Sent: 27-01-2016 16:56 > To: Puppet Users > Subject: Re: [Puppet Users] Error: Could not find class apache > > What if you try running: > > puppet apply C:\Maruti\Puppet\manifests\site.pp > --modulepath C:\Maruti\Puppet\modules > > Den tirsdag den 26. januar 2016 kl. 15.32.07 UTC+1 skrev Maruti Gangumolu: >> >> Hi Lowe, >> >> Here are the details >> >> This is the directory structure for manifests file site.pp and nodes.pp >> :- "C:\Maruti\Puppet\manifests" >> >> The is the code for site.pp file >> >> import 'nodes.pp' >> >> This is the code for nodes.pp file >> >> node 'IMIBLRKA1030' { >> include apache >> } >> >> >> >> This is the directory structure for module's manifests file init.pp :- >> "C:\Maruti\Puppet\modules\apache\manifests" >> This is the code for init.pp file >> >> # Manage apache tomcat v8 application server >> class apache { >> package { 'Tomcat8' : >> ensure => present, >> source => 'C:/Maruti/Puppet/apache-tomcat-8.0.30.exe', >> install_options => ['/S','/D=C:\Maruti\Puppet\apache-tomcat-8'], >> description => 'Installing tomcat v8.0.30 on windows system', >> } >> } >> >> and I'm invoking site.pp file using puppet apply command as mentioned >> below and getting class apache is not found. >> >> C:\>puppet apply C:\Maruti\Puppet\manifests\site.pp >> Warning: The use of 'import' is deprecated at >> C:/Maruti/Puppet/manifests/site.pp >> :1. See http://links.puppetlabs.com/puppet-import-deprecation >>(at C:/Program Files/Puppet >> Labs/Puppet/puppet/lib/puppet/parser/parser_suppo >> rt.rb:110:in `import') >> Error: Could not find class apache for x on node imiblrka >> Error: Could not find class apache for x on node imiblrka >> >> Thanks, >> Maruti. >> >> >> >> >> >> >> >> On Tue, Jan 26, 2016 at 1:41 AM, Maruti Gangumolu >> wrote: >> >>> Hi Team, >>> >>> I'm new to puppet coding and I'm trying to install apache tomcat using >>> class which is being included in nodes.pp file. >>> >>> I'm getting this error message when running site.pp file >>> >>> C:\ABC\Puppet\manifests>puppet apply C:\ABC\Puppet\manifests\site.pp >>> Warning: The use of 'import' is deprecated at >>> C:/ABC/Puppet/manifests/site.pp >>> :1. See http://links.puppetlabs.com/puppet-import-deprecation >>>(at C:/Program Files/Puppet >>> Labs/Puppet/puppet/lib/puppet/parser/parser_suppo >>> rt.rb:110:in `import') >>> Error: Could not find class apache for on node imiblr >>> Error: Could not find class apache for on node imiblr >>> >>> Could you please help me in fixing this issue? >>> >>> -- >>> You received this message because you are subscribed to a topic in the >>> Google Groups "Puppet Users" group. >>> To unsubscribe from this topic, visit >>> https://groups.google.com/d/topic/puppet-users/tIS3pSfnrSQ/unsubscribe. >>> To unsubscribe from this group and all its topics, send an email to >>> puppet-users...@googlegroups.com. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/puppet-users/2a28a925-5fd8-4d2e-992d-c4df22e944b4%40googlegroups.com >>> <https://groups.google.com/d/msgid/puppet-users/2a28a925-5fd8-4d2e-992d-c4df22e944b4%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 a topic in the > Google Groups "Puppet Users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/puppet-users/tIS3pSfnrSQ/unsubscribe. > To unsubscribe from this group and all its topics, 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/97d63042-b137-4633-a3c6-778b9a7001ca%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-users/97d63042-b137-4633-a3c6-778b9a7001ca%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/CAKu269h508CjhLpdpucL2TwZuMu8qBOfpQjPveXxugnPRLGrJA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] How to install tomcat silenlty using puppet on Windows 7
Thanks Dirk! It worked. I'm still facing with module class file. When I'm invoking site.pp -> nodes.pp -> init.pp manifest files I'm getting an error that apache class is not found. Could you please help me with it? # Manage apache tomcat v8 application server class apache { package { 'Tomcat8' : ensure => present, source => 'C:/Maruti/Puppet/apache-tomcat-8.0.30.exe', install_options => ['/S','/D=C:\Maruti\Puppet\apache-tomcat-8'], description => 'Installing tomcat v8.0.30 on windows system', } } Thanks, Maruti. On Friday, January 22, 2016 at 2:52:53 PM UTC+5:30, Dirk Heinrichs wrote: > Am 21.01.2016 um 19:04 schrieb Maruti Gangumolu: > > install_options => ['/VERYSILENT'], > > > I have: install_options => ['/S'], > > HTH... > > Dirk > -- > > *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions > *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach > *Tel*: +49 2226 159 <#> (Ansage) 1149 > *Email*: d...@recommind.com > *Skype*: dirk.heinrichs.recommind > www.recommind.com > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/49dfc910-4a35-4edc-87f1-686d44f9dfeb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
RE: [Puppet Users] Error: Could not find class apache
The behaviour was same! -Original Message- From: "Frederik Bjerggaard Nielsen" Sent: 27-01-2016 16:56 To: "Puppet Users" Subject: Re: [Puppet Users] Error: Could not find class apache What if you try running: puppet apply C:\Maruti\Puppet\manifests\site.pp --modulepath C:\Maruti\Puppet\modules Den tirsdag den 26. januar 2016 kl. 15.32.07 UTC+1 skrev Maruti Gangumolu: Hi Lowe, Here are the details This is the directory structure for manifests file site.pp and nodes.pp :- "C:\Maruti\Puppet\manifests" The is the code for site.pp file import 'nodes.pp' This is the code for nodes.pp file node 'IMIBLRKA1030' { include apache } This is the directory structure for module's manifests file init.pp :- "C:\Maruti\Puppet\modules\apache\manifests" This is the code for init.pp file # Manage apache tomcat v8 application server class apache { package { 'Tomcat8' : ensure => present, source => 'C:/Maruti/Puppet/apache-tomcat-8.0.30.exe', install_options => ['/S','/D=C:\Maruti\Puppet\apache-tomcat-8'], description => 'Installing tomcat v8.0.30 on windows system', } } and I'm invoking site.pp file using puppet apply command as mentioned below and getting class apache is not found. C:\>puppet apply C:\Maruti\Puppet\manifests\site.pp Warning: The use of 'import' is deprecated at C:/Maruti/Puppet/manifests/site.pp :1. See http://links.puppetlabs.com/puppet-import-deprecation (at C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/parser/parser_suppo rt.rb:110:in `import') Error: Could not find class apache for x on node imiblrka Error: Could not find class apache for x on node imiblrka Thanks, Maruti. On Tue, Jan 26, 2016 at 1:41 AM, Maruti Gangumolu wrote: Hi Team, I'm new to puppet coding and I'm trying to install apache tomcat using class which is being included in nodes.pp file. I'm getting this error message when running site.pp file C:\ABC\Puppet\manifests>puppet apply C:\ABC\Puppet\manifests\site.pp Warning: The use of 'import' is deprecated at C:/ABC/Puppet/manifests/site.pp :1. See http://links.puppetlabs.com/puppet-import-deprecation (at C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/parser/parser_suppo rt.rb:110:in `import') Error: Could not find class apache for on node imiblr Error: Could not find class apache for on node imiblr Could you please help me in fixing this issue? -- You received this message because you are subscribed to a topic in the Google Groups "Puppet Users" group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/tIS3pSfnrSQ/unsubscribe. To unsubscribe from this group and all its topics, send an email to puppet-users...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/2a28a925-5fd8-4d2e-992d-c4df22e944b4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to a topic in the Google Groups "Puppet Users" group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/tIS3pSfnrSQ/unsubscribe. To unsubscribe from this group and all its topics, 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/97d63042-b137-4633-a3c6-778b9a7001ca%40googlegroups.com. 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/56a92628.cd59620a.11eb0.74f3%40mx.google.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Error: Could not find class apache
Hi Lowe, Here are the details This is the directory structure for manifests file site.pp and nodes.pp :- "C:\Maruti\Puppet\manifests" The is the code for site.pp file import 'nodes.pp' This is the code for nodes.pp file node 'IMIBLRKA1030' { include apache } This is the directory structure for module's manifests file init.pp :- "C:\Maruti\Puppet\modules\apache\manifests" This is the code for init.pp file # Manage apache tomcat v8 application server class apache { package { 'Tomcat8' : ensure => present, source => 'C:/Maruti/Puppet/apache-tomcat-8.0.30.exe', install_options => ['/S','/D=C:\Maruti\Puppet\apache-tomcat-8'], description => 'Installing tomcat v8.0.30 on windows system', } } and I'm invoking site.pp file using puppet apply command as mentioned below and getting class apache is not found. C:\>puppet apply C:\Maruti\Puppet\manifests\site.pp Warning: The use of 'import' is deprecated at C:/Maruti/Puppet/manifests/site.pp :1. See http://links.puppetlabs.com/puppet-import-deprecation (at C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/parser/parser_suppo rt.rb:110:in `import') Error: Could not find class apache for x on node imiblrka Error: Could not find class apache for x on node imiblrka Thanks, Maruti. On Tue, Jan 26, 2016 at 1:41 AM, Maruti Gangumolu < maruti.gangum...@gmail.com> wrote: > Hi Team, > > I'm new to puppet coding and I'm trying to install apache tomcat using > class which is being included in nodes.pp file. > > I'm getting this error message when running site.pp file > > C:\ABC\Puppet\manifests>puppet apply C:\ABC\Puppet\manifests\site.pp > Warning: The use of 'import' is deprecated at > C:/ABC/Puppet/manifests/site.pp > :1. See http://links.puppetlabs.com/puppet-import-deprecation >(at C:/Program Files/Puppet > Labs/Puppet/puppet/lib/puppet/parser/parser_suppo > rt.rb:110:in `import') > Error: Could not find class apache for on node imiblr > Error: Could not find class apache for on node imiblr > > Could you please help me in fixing this issue? > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Puppet Users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/puppet-users/tIS3pSfnrSQ/unsubscribe. > To unsubscribe from this group and all its topics, 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/2a28a925-5fd8-4d2e-992d-c4df22e944b4%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-users/2a28a925-5fd8-4d2e-992d-c4df22e944b4%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/CAKu269jka%3D-Ba7pEEUFAf-qQr-0Zfa%2B-_tvdZ6HO6pjb8ikFCA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] Error: Could not find class apache
Hi Team, I'm new to puppet coding and I'm trying to install apache tomcat using class which is being included in nodes.pp file. I'm getting this error message when running site.pp file C:\ABC\Puppet\manifests>puppet apply C:\ABC\Puppet\manifests\site.pp Warning: The use of 'import' is deprecated at C:/ABC/Puppet/manifests/site.pp :1. See http://links.puppetlabs.com/puppet-import-deprecation (at C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/parser/parser_suppo rt.rb:110:in `import') Error: Could not find class apache for on node imiblr Error: Could not find class apache for on node imiblr Could you please help me in fixing this issue? -- 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/2a28a925-5fd8-4d2e-992d-c4df22e944b4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] How to install tomcat silenlty using puppet on Windows 7
Hi, I'm new user to puppet tool and I have few issues while installing tomcat silently on windows. this is my manifest file package { 'tomcat-8' : ensure => present, source => 'C:/abc/Puppet/apache-tomcat-8.0.30.exe', install_options => ['/VERYSILENT'], description => 'Installing tomcat v8.0.30 on windows system', } The issue is GUI application is popping up for installation and How can I avoid it? Thanks, Maruti. -- 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/aca468c9-9b7f-4303-9201-76d935f243db%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.