Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all 6104 articles
Browse latest View live

Go To Bartenders Train - Turn Everyone C. H. Best Friend

$
0
0
Patch you sack take a crap up to $150 - $300 a night functional as a bartender, click over here,, you mightiness receive a difficult clock time acquiring a Job flop taboo of grooming. Many bartending schools offer Job placement assistance to arrive at it easier. If there's an institution you deprivation to function at but in that respect are no Job openings you might want to try out acquiring a Job as bar gage and working your direction into a bartending pose. In any case the Book of Job emplacement help provided by the school, on that point are many websites that stool assist you discover a lay fanny the legal community.

When looking for for a bartender preparation program, make believe certain that it is commonwealth qualified and nation approved. Also, if it's conceivable go to the quickness and fit it prohibited to pull in sure it looks comparable a lineament direct and visit if they make references so you privy babble out person who has interpreted the row. Or if you chat during a class, spill the beans to stream students to learn what they matter of the preparation and the instructor.

Close to of the bigger internal barkeep education schools are ABC Bartending, Earth Bartending School, Internal Bartenders, and BartendingSchool.web. With a picayune enquiry you wish be able-bodied to witness the programs that fits your budget and schedule and one and only that is almost where you hold up.

If you're looking for a business that is play and allows you to turn over come out with former masses and pays intimately and something you throne do bartender anyplace bartending is the path to go. With the suited training and fantabulous task location you'll be on your direction to a New career in no meter.

Execute a command onlyif service is not running.

$
0
0
Hi Team, exec {'start_service': command => '/opt/agent/bin/service start --accept-license', onlyif => ".....", } The command should get execute only if the service "splunk" is not running. I would like to put `ps -ef | grep -i "splunk"` Please help here..! Regards, Rohith

undefined method 'str_to_bool' for MCollective::Util::Module

$
0
0
Hi, everyone! I have a problem when I install MCollective agent plugin. MCollective has already been installed correctly. ----------------------------------------------------------- [root@Client ~]#mco ping server1 time=108.22 ms ---- ping statistics ---- 1 replies max: 108.22 min: 108.22 avg: 108.22 ------------------------------------------------------------ But, it cannot load MCollective server as puppet agent. ------------------------------------------------------------- [root@Client ~]#mco inventory server1 Inventory for sever1: Server Statistics: Version: 2.2.3 Start Time: Fri Jun 30 15:23:32 +0800 2017 Config File: /etc/mcollective/server.cfg ... Agents: discovery rpcutil Data Plugins: agent fstat pupept recource ... -------------------------------------------------------------------- It seems that MCollective Data plugin has already loaded, but Agent Plugin hasn't. here is MCollective log on server1: ERROR -- : agents.rb:71:in 'loadagent' Loading agent puppet failed: Counld not create instance of plugin MCollective::Agent::Puppet: undefined method 'str_to_bool' for MCollective::Util::Module I don't know how this happen. Environment: MCollective Version: 2.2.3 mcollective puppet agent countversion: 1.11.1-1.el6 How can I fix this probelm? Thank you!

How to get remote node ip via regexp

$
0
0
Hi all! My node's have several ip address. And i need to get and only 192.168.*.* and use it in my .erb template file. Example: server has ip 192.168.156.68 and 10.248.41.70. In my manifest i write: if $::ipaddress =~ /^192\.168\.\d{1,3}\.\d{1,3}/ { notice("ok") } else { warning("don't know what to do with IP address $::ipaddress") } and in templates: `ListenAddress <%= @ipaddress %>` In result, on the nodes conf file i get: `ListenAddress 10.248.41.70` but i have to get `ListenAddress 192.168.156.68` Can anybody can explain me how to do it ?

when I tried to connect puppet master with puppet agent-t , I am getting error in loading fact.

$
0
0
I am using centos 6. Error loading fact /var/lib/puppet/lib/facter/staging_windir.rb: /var/lib/puppet/lib/facter/staging_windir.rb:2: syntax error, unexpected ':', expecting kEND confine osfamily: :windows

What's the difference between Parameter and Variable in Puppet?

$
0
0
Hello All, Can someone please help me understand what's the difference between Parameter and Variable in Puppet? From Puppet Docs: Variables store values so they can be accessed later. Also they are constants, meaning we can't define same variable with another variable in the same the same scope. I get that. Ex: $content = "some content\n" I get that above part. Then, what is the parameter? Isn't the same thing. This part is little confusing. If someone can please help me with an example, that would be very helpful. Thank you very much. Sam

Icinga2 Puppet host vars

$
0
0
Hello, I have a sprecific icinga2 puppet Problem. I try to add notifications to a Host. The Notifications should be added through the vars in icinga2::object::host. Like this: vars => { 'notification.mail.users' => [hiera('base::linux::motd::contact', 'admin@test.com')] }, After the puppet run it looks like this: vars."notification.mail.users" = [ "admin@test.com", ] And icnga2 cannot reload because of the "". Is there a way to remove the Quotes ? Cheers, - Pascal

I am trying to install apache in node though site.pp in Google cloud VMs(centos 6) , it got connected but throwing errors while doing that

$
0
0
when I ran # puppet agent -t Info: Retrieving pluginfacts Info: Retrieving plugin Info: Loading facts Error loading fact /var/lib/puppet/lib/facter/staging_windir.rb: /var/lib/puppet/lib/facter/staging_windir.rb:2: syntax error, unexpected ':', expecting kEND confine osfamily: :windows ^ Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class java for agent-1.c.connection-169807.internal on node agent-1.c.connection-169807.internal Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run

I am trying to install apache in agent using puppetmaster , it got connected but failed to fetch facts and catalog.(Google cloud vms)

$
0
0
I am using centos 6 VMs(master and agent) in google cloud platform I am able create files using the site.pp but i am not able to get the software installed in node. when I ran #puppet agent -t *Info: Retrieving pluginfacts Info: Retrieving plugin Info: Loading facts Error loading fact /var/lib/puppet/lib/facter/staging_windir.rb: /var/lib/puppet/lib/facter/staging_windir.rb:2: syntax error, unexpected ':', expecting kEND confine osfamily: :windows* ^ Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class java for agent-1.c.connection-169807.internal on node agent-1.c.connection-169807.internal Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run

Inspiration for long term package management

$
0
0
I'm exploring Puppet and over the past weeks have created a nice manifest that installs and configures all applications that I need over the two OS that we use. I can now spin up boxes real fast and keep configuration in sync, and that already solves a major problem! However, with creating boxes out of the way, maintaining them is still an unknown for me. I'm not yet sure on a good Puppet strategy for managing package updates over a longer time. Currently, I don't specify package versions, I just 'ensure' what I need to 'installed'. So, at install time, I will get the latest Ubuntu packages, which is acceptable, but I don't really have a strategy for what happens after that. So after time, there will be drift between versions on different boxes, and updates still have to be done manually with the OS tools until I think of something. I have put all my needed packages in Hiera, so I could easily add required versions to them. I am wondering what people do to manage package versions over a longer time. Do you specify specific versions for all packages and periodically bump these versions in the manifests, so that after this change all boxes will automatically upgrade the packages using the Puppet package provider? What do you do with dependent packages (e.g. libraries like gettext, ncurses etc)? It would seem like a tough job to also keep those packages all in the manifest and keep their versions locked. Or do you just use the tools provided by the OS? Do you also run OS major updates through Puppet? Ultimately, I would like to find a better way to maintain around 50 Ubuntu boxes in a way that's centered around Puppet, which I like. Currently, we just manually run apt-get from time to time (and nobody ever has time), so this is not tenable in the long run. I would like to be both more consistent and more up-to-date. Any resources or inspiration would be highly appreciated!

e-gold - gold itself circulated electronically

$
0
0
e-gold - gold itself, circulated electronically
By TheGoldShop.biz

e-gold boasts "Better Money since 1996" and in many ways they are right. e-gold gives users the chance to own gold at a fraction of the usual cost, e-gold gives users unlimited freedom to make purchases worldwide for goods and services and gives merchants excellent security with irrevocable transactions (no chargeback's).

e-gold in many ways is better then cash, far better and cheaper to use then credit cards and by far quicker and at a fraction of the cost for making international money transfers.

About e-gold

e-gold is based offshore with a Nevis W.I. company structure, secure from the pitfalls of being located in the USA or other western countries. e-gold secures account balances in gold stored in various third party gold depositories around the world. e-gold was established by Dr. Douglas Jackson who is still the chairman and is active in the e-gold, gold and digital gold backed currency community.

For people interested in learning more about the e-gold community, e-gold hosts a high volume email discussion list (read the e-gold list online without subscribing).

Irrevocable Transactions

e-gold gives the user and merchant alike unparallel security against identity theft, user profiling, funds movement tracing through their semi-anonymous online payment system. Users and merchants have the freedom to send and accept transfers without the risk of identity theft and payment reversals.

Where to use e-gold

Information on merchants that prefer e-gold can be found at a861.com and gold-pages.net. There are merchants that accept e-gold and other digital currencies (or e-currencies) offering all the usual services that can be found on the internet. e-gold users can buy web hosting, domain names, coffee and other food stuffs, website design services, business services (like offshore corporations), goods and services from most online retailers even if they do not take e-gold through a "proxy shop" company AllMart - so now e-gold users can buy off all websites that takes credit cards like Amazon, Barnes and Noble, etc. e-gold also has a WAP interface so users can make payments offline using your mobile phone.

Pay your bills using e-gold

You can also pay your bills using e-gold, many e-gold exchange agents offer check redemption services. Simply sell (or redeem) your e-gold for a check and have that sent directly to the company that you wish to pay, this could be anyone, from paying your credit card, power bill and all your local suppliers.

The basics

The e-gold system is setup in the following way, firstly there is e-gold - this is where your money (or gold) is securely stored with online account access. To fund your e-gold account there are e-gold exchange agents, these companies take your US$ or other national dollars via cash deposit, credit card, bank wire or bank transfer and exchange your money into e-gold and into your e-gold account. Likewise, to redeem e-gold for cash (be it via bank wire or check) e-gold users also use the services of a e-gold exchange agent. Most e-gold exchange agents operate worldwide with email and phone support, so regardless where you are located in the world you can easily buy e-gold.

Buying e-gold

Users must first have a e-gold account - e-gold accounts are free, anyone can open one and you can have as many as you like. If you do not have a e-gold account, you can open a free e-gold account here now. Next you need to find an e-gold exchange agent. Thankfully most e-gold exchange agents offer worldwide (USA, Europe and Asia) offering funding options in many countries, typical services include cash deposit, credit cards, bank wire, bank transfer and checks. Orders for e-gold are placed on the exchange agent website and processed by the operators usually within a few days depending of the funding option requested by customer. First orders can take longer - see "Your first purchase - getting verified!" below, returning clients should expect funding within a day or two.

Where to find a e-gold exchange agent

These web pages list e-gold exchange agents;

Global Digital Currency Association (verified verified means the identification of the exchange agent operators are known and rated means the exchange agent reputation has been rated)

Your first e-gold purchase - getting verified!

When making your first purchase of e-gold the new user can expect that the exchange agent will check their identity or be "verified". Verification procedures vary between different exchange agents but at least you should expect a phone call. This verification requirement has come about due to the massive amount of credit card fraud, bank account hacking and phishing scams currently on the internet. Responsible e-gold exchange agents try to protect people who have meet unfortunately with a scammer / hacker by not letting the theft move there ill gotten gains into e-gold. Your personal information is always protected using 128 bit SSL website, secure web servers, strict privacy policies and all client information www.goldprice.com/gold-price-per-ounce is kept confidential. The verification requirements are higher for credit card use due to the fact credit card fraud is massive on the internet and online retailers / shops ... including e-gold exchange agents.

Secure your gold!

With e-gold security is the users responsibility, remember all e-gold transactions are irrevocable - even if your account is hacked! e-gold helps protect your account by giving you the security feature called Account Sentinel (AccSent), leave this feature on (it is on by default for all new accounts). AccSent will email you every time someone tries to log into your e-gold account with a different IP address - careful, if you lose your email address you will not be able to log into your e-gold account.

A tip is to use two email addresses like this; email1@email1.com, email2@email2.com (that is "email1 comma space email2") on your e-gold account - using this tip means both emails will be notified upon login or account profile changes.

Making sure your computer is protected also protects your e-gold account from unauthorized transfers, it is highly recommended that you have adequate computer security. Computer security at least includes up-to-date firewall software, antivirus software and all operating system updates are installed on your computer.

Using a long passphrase (sentence) on your e-gold account and not saving that passphrase (password) on your computer helps greatly as well.

All too easy

e-gold offers easy transfers between accounts for the purchase of a multitude of products and services at a faction of the cost of other worldwide money transfer systems. e-gold offers users the easiest way to pay anyone around the world without providing personal information (no risk of identity theft or profiling). e-gold offers merchants a worldwide client base and irrevocable transactions safe from chargeback's. e-gold also caters for both large and same transfers and account balances, for example maximum transfer fee is only 50 cents and all funds (large and small) are securely backed by gold held in third party gold depositories around the world.

About the author

The operators of TheGoldShop.biz are verified members of the GDCA and ECMA and have operated e-gold exchange businesses since 2001. Article reprint permission granted as long as article remains intact and not edited in anyway, including this "about the author" and all hyperlinked URLs remain unaltered.

I am trying install tomcat on my agent with master but I am getting many errors.

$
0
0
I am using Centos 6 Google cloud Vms In my manifests I am writing a code in site.pp and in agent simple classes and node scripts to install apache and mysql ran succesfuuly. Now I am using the follwing code to install tomcat in agent. class { 'java': } tomcat::install { '/opt/tomcat8': source_url => 'https://www.apache.org/dist/tomcat/tomcat-8/v8.0.x/bin/apache-tomcat-8.0.x.tar.gz' } tomcat::instance { 'tomcat8-first': catalina_home => '/opt/tomcat8', catalina_base => '/opt/tomcat8/first', } tomcat::instance { 'tomcat8-second': catalina_home => '/opt/tomcat8', catalina_base => '/opt/tomcat8/second', } # Change the default port of the second instance server and HTTP connector tomcat::config::server { 'tomcat8-second': catalina_base => '/opt/tomcat8/second', port => '8006', } tomcat::config::server::connector { 'tomcat8-second-http': catalina_base => '/opt/tomcat8/second', port => '8081', protocol => 'HTTP/1.1', additional_attributes => { 'redirectPort' => '8443' }, } In agent I ma using puppet agent -t , Error: Warning: Unable to fetch my node definition, but the agent run will continue: Warning: Connection refused - connect(2) Info: Retrieving pluginfacts Error: /File[/var/lib/puppet/facts.d]: Failed to generate additional resources using 'eval_generate': Connection refused - connect(2) Error: /File[/var/lib/puppet/facts.d]: Could not evaluate: Could not retrieve file metadata for puppet://master-1.c.connection-169807.internal/pluginfacts: Connection refused - connect(2) Info: Retrieving plugin Error: /File[/var/lib/puppet/lib]: Failed to generate additional resources using 'eval_generate': Connection refused - connect(2) Error: /File[/var/lib/puppet/lib]: Could not evaluate: Could not retrieve file metadata for puppet://master-1.c.connection-169807.internal/plugins: Connection refused - connect(2) Info: Loading facts Error loading fact /var/lib/puppet/lib/facter/staging_windir.rb: /var/lib/puppet/lib/facter/staging_windir.rb:2: syntax error, unexpected ':', expecting kEND confine osfamily: :windows ^ Error: Could not retrieve catalog from remote server: Connection refused - connect(2) Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run Error: Could not send report: Connection refused - connect(2)

Tips to Invest in Silver

$
0
0
Silver is a precious metal as its counter part gold. Its price doesn't remain stable for fixed period. It keeps on fluctuating according to market scenario. As a result of changing prices on silver, every time its rate increases a little bit. In such situation if you invest in silver, you have greater chances of profit in short time. It is a basic investment tip even though many people do not know about it.

You can purchase silver as in the form of beautiful jewelries, artistic objects, silver coins and silver bullions. You can also invest in silver ETFs and stocks of silver mining companies. No matter what you buy, silver will definitely give profitable returns in near future. Investinghttp://www.goldprice.com/silver-prices-per-ounce in silver bullions or bars is advantageous because they are available in purest form. Reselling of silver bars can give double or more than double the amount for which they are bought depending upon the market value.

Silver price depends on its purity as well quality. As in normal situation artistic items such as jewelries, candle stands and other silver products are manufactured with other metals. Therefore, you don't get profitable returns for these items. In rare occasion, a few items can be sold at profit for their master craftsmanship. Silver coins are valued on silver price per ounce and they can provide more profit than actual market price at the time of purchase. Therefore, investing in decorative items is not advisable and beneficial.

If you don't want to invest in silver bullions and insurance formalities, you can invest in silver ETFs. This type of investment is safe because you can reap more money. Resale ETFs for silver price per ounce when silver price increases after some months. Investing in silver nuggets is another good option. You should not miss a chance to buy silver nuggets because these items are rarely available. Silver nuggets are purest form of silver and many collectors are interested to buy these items.

Interested to buy physical silver objects which can give profitable returns, you can purchase silver coins that have artistic importance. You don't have to pay tax for these items. If you collect silver bullions more than 10 ounces, then you will have to pay tax. However, you don't have to face such difficulties if you invest in silver coins. Most of the people prefer to invest in silver because of fewer risks.

Panic Selling Slams the Market but Will Gold Hold?

$
0
0
Did you close out any long positions today? Well if not then you are one of a few!

Today (Wednesday) the market gapped down 1.5% at the opening bell which set a very negative tone for the session. Volume was screaming as protective stops triggered and traders close out positions before prices fell much further. This gap seemed to have caught several traders off guard but those of you who follow my newsletter knew something big was brewing and to keep positions very small.

Just before the close on Tuesday I had a buy signal for the SP500 which was generated from the extreme readings on the market internals. After watching the market chop around and get squeezed into the apex of the rising wedge the past 3 weeks I knew something big was about to happen and I did not want to get everyone involved because I felt a large gap was about to happen and the odds were 50/50. Instead we passed on the technical buy signal and waited to see what would happen Wednesday.

Below are a few charts showing one of my extreme reading indicators I use which helps me to identify possible short term bottoms.

SP500 - SPY Exchange Traded Fund

This daily chart of the SPY etf clearly shows that when we see panic selling in the NYSE which I consider 15+ sell orders to each buy order to be PANIC SELLING. This is shown using the purple indicator at the bottom of the chart. Today there was an average of 37 sell orders to every buy order which tells me the majority of traders are closing out all their long positions.

In an uptrend this indicator works very well and can help time a bottom within 1-4 days. As you can see on the chart below we just had a huge sell off and everyone seemed to be exiting their positions. This panic selling tends to carry over for a couple sessions until the majority of traders around the globe are finished selling.

The problem with this indicator is that in a down trend we tend to get these panic selling spikes regularly which means this time it may not work out because of the trendline break today which I think has officially changed the trend from up to down. Because of this possible down trend starting I feel its best to wait and see if it's a dead cat bounce or if there are real buyers behind it, then we will take action to go long or short the market.

Market Internals - Put/Call Ratio & NYSE Advance/Decline Line - 60 Min Charts

Here are two charts which are currently at extreme levels. This typically means we a bounce should occur the following day or a gap higher. If you did not know there was a strong trendline breakdown today you most likely would have taking a small long position into the close.

The Put/Call ratio when above 1.00 means more people are buying put options, meaning they are leveraging themselves to make money if the market drops. As a contrarian indicator, if everyone is buying leverage to the down side then they should have sold their long positions already. That would mean most of the selling has already taken place in the market thus it should have some upward bias in the near term.

On the other side you can see the NYSE A/D line which shows how many stocks on the NYSE are advancing and how many have moved lower. When this indicator is below -1750 then we know the market is oversold on a short term basis and there should be some upward bias in the near future.

Now Lets Take A Look At Gold

Gold was left on the side of the road today as traders and investors focused on the equities market. I was actually a little surprised that it didn't make a big move today because the US Dollar rocketed higher for the entire session. Anyone who has been watching gold closely already knows that gold is doing its own thing now... Some days it moves with the dollar, other days it does not... its become much more random than it used to be.

Anyways it looks to be forming two patterns... first one is a bull flag. If a breakout to the upside occurs thatwould send gold to the $1230-40 level.

The second pattern is a mini head and shoulders pattern which would send gold down to the $1180 area if the neck line is violated. It is a very tough call for gold.

Mid-Week Technical Traders Update:

In short, it's going to take a day or two before we get a feel for the SP500 as we wait to see if it bounces with volume behind it. I personally would like a bounce so we can short it. It is unfortunate how the market broke down today. We were so close to getting a really good setup in either direction but the FOMC meeting shook things up and caused the large gap which in turn made a large group of traders miss that beautiful drop... It's frustrating when you wait for something only to have a piece of news mess things up. That's just part of trading though.

As for gold, I feel it's a 50/50 trade and could go either way so I am not going to take a position right now. I'm just going to wait for the market to tip its hand a little more before I jump.

file not getting created on Node (Puppet Agent)

$
0
0
Hello, I am new to using puppet. I have set up a master as well agent and configured them to communicate with each other. However when i try to create a file on the agent using the nodes.pp manisfest in the directory /etc/puppet/environments/production/manifests, the file is not created on the agent. node 'puppetagent.nagarro.local' { file { '/home/ramneek/info.txt': ensure => 'present', content => inline_template("Created by Puppet at <%=Time.now%>\n"), } } Below is the command run on the agent: [root@puppetagent ramneek]# puppet agent --verbose --no-daemonize --onetime Info: Caching catalog for puppetagent.nagarro.local Info: Applying configuration version '1499250441' Notice: Finished catalog run in 0.08 seconds Please help. I have tried alot of googling with no results. Earlier i was getting the below errors as well Info: Retrieving pluginfacts Error: /File[/var/lib/puppet/facts.d]: Could not evaluate: Could not retrieve information from environment production source(s) puppet://puppetmaster/pluginfacts Info: Retrieving plugin Error: /File[/var/lib/puppet/lib]: Could not evaluate: Could not retrieve information from environment production source(s) puppet://puppetmaster/plugins Which i managed by adding below line to puppet.conf pluginsync = false Thanks Ramneek

Which puppet module should I include for a managed database mysql::client using netmanagers/bareos?

$
0
0
When I include the following in my `nodes.pp`: class {'bareos': ... manage_database => true, ... I get the following error: ==> bareOSdirector: Error: Could not find class mysql::client for bareosdirector on node bareosdirector ==> bareOSdirector: Error: Could not find class mysql::client for bareosdirector on node bareosdirector There seem to be quite a few mysql modules out there, does anyone have an idea of which one was intended to be a dependency of this library? I'm aware that [netmanagers bareos][1] is unmaintained. [1]: https://forge.puppet.com/netmanagers/bareos/compatibility

Which puppet module should I include for a managed database mysql::client using netmanagers/bareos?

$
0
0
When I include the following in my `nodes.pp`: class {'bareos': ... manage_database => true, ... I get the following error: ==> bareOSdirector: Error: Could not find class mysql::client for bareosdirector on node bareosdirector ==> bareOSdirector: Error: Could not find class mysql::client for bareosdirector on node bareosdirector There seem to be quite a few mysql modules out there, does anyone have an idea of which one was intended to be a dependency of this library? I'm aware that [netmanagers bareos][1] is unmaintained. [1]: https://forge.puppet.com/netmanagers/bareos/compatibility

AWS Module issue with listing elb_loadbalancer resources

$
0
0
Hello! I've been banging my head against the wall for a few hours now, and cannot figure out why the AWS module doesn't work for the loadbalancer code. The following happens to me: **sudo puppet resource elb_loadbalancer** Error: Could not run: Puppet detected a problem with the information returned from AWS when looking up elb_loadbalancer in ap-south-1. The specific error was: The instance IDs '**redacted**, **redacted**, **redacted**, **redacted**' do not exist Rather than report on elb_loadbalancer resources in an inconsistent state we have exited. This could be because some other process is modifying AWS at the same time. My EC2 console doesn't show anything in ap-south-1. No load balancers, none of the listed instances, nothing. All of the instances are in another load balancer in us-east-1, and everything looks fine there. I'm sure I am just missing something, but I cannot figure out what it is. Any suggestions? Edit: The aws module has worked for just about everything else I have done so far.

hiera interpretation problem

$
0
0
Hello, I am using hiera variables in puppet with a default value like this: users => [hiera('base::linux::monitoring::servicecontact', 'base::linux::motd::contact')] Can I do the same in hiera? I tried something like this: mail.notification.users: "%{hiera('base::linux::monitoring::servicecontact','base::linux::motd::contact')}" But I keep getting a syntax error.. Can someone help me please ? Cheers, - Pascal

how to create custom facts in puppet in RHOS server

$
0
0
I am new to puppet ..I have installed puppet server(3.6.2) and puppet agent (3.8.4)..i am trying to start with creating facts to achieve,I am following below steps: 1.added pluginsync=true under main section inside puppet.conf file in master server 2.added a file in(/var/lib/puppet/lib/facter/last_run.rb) the content of the file is [root@sasin ~]$cat /var/lib/puppet/lib/facter/last_run.rb require 'facter' Facter.add("last_run") do setcode do Facter::Util::Resolution.exec('date') end end my question is if i do puppet agent -t --pluginsync from my agent server..i don't see any facts are loaded into client. How does it work? If i do sudo facter -p last_run in master server..It works fine and displays the date
Viewing all 6104 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>