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

Unable to start puppet agent

$
0
0
I'm trying to setup puppet on a server running debian 9. I've installed puppet master and puppetserver when I try to invoke `puppet agent --test`, I'm getting the following error. admin@puppet:~$ sudo /opt/puppetlabs/bin/puppet agent --test Warning: Unable to fetch my node definition, but the agent run will continue: Warning: Failed to open TCP connection to puppet:8140 (Connection refused - connect(2) for "puppet" port 8140) Info: Retrieving pluginfacts Error: /File[/opt/puppetlabs/puppet/cache/facts.d]: Failed to generate additional resources using 'eval_generate': Failed to open TCP connection to puppet:8140 (Connection refused - connect(2) for "puppet" port 8140) Error: /File[/opt/puppetlabs/puppet/cache/facts.d]: Could not evaluate: Could not retrieve file metadata for puppet:///pluginfacts: Failed to open TCP connection to puppet:8140 (Connection refused - connect(2) for "puppet" port 8140) Info: Retrieving plugin Error: /File[/opt/puppetlabs/puppet/cache/lib]: Failed to generate additional resources using 'eval_generate': Failed to open TCP connection to puppet:8140 (Connection refused - connect(2) for "puppet" port 8140) Error: /File[/opt/puppetlabs/puppet/cache/lib]: Could not evaluate: Could not retrieve file metadata for puppet:///plugins: Failed to open TCP connection to puppet:8140 (Connection refused - connect(2) for "puppet" port 8140) Error: Could not retrieve catalog from remote server: Failed to open TCP connection to puppet:8140 (Connection refused - connect(2) for "puppet" port 8140) Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run Error: Could not send report: Failed to open TCP connection to puppet:8140 (Connection refused - connect(2) for "puppet" port 8140) Also I've an SSL certificate for my fqdn which running puppet. I can see the certificate when I do `puppet cert -all`, but I couldn't see the certificate `puppet cert list`, Am I missing something here?

Unable to start puppet agent

$
0
0
I'm trying to setup puppet on a server running debian 9. I've installed puppet master and puppetserver when I try to invoke `puppet agent --test`, I'm getting the following error. admin@puppet:~$ puppet agent -t Warning: Unable to fetch my node definition, but the agent run will continue: Warning: Failed to open TCP connection to puppet:8140 (Connection refused - connect(2) for "puppet" port 8140) Info: Retrieving pluginfacts Error: /File[/home/admin/.puppetlabs/opt/puppet/cache/facts.d]: Failed to generate additional resources using 'eval_generate': Failed to open TCP connection to puppet:8140 (Connection refused - connect(2) for "puppet" port 8140) Error: /File[/home/admin/.puppetlabs/opt/puppet/cache/facts.d]: Could not evaluate: Could not retrieve file metadata for puppet:///pluginfacts: Failed to open TCP connection to puppet:8140 (Connection refused - connect(2) for "puppet" port 8140) Info: Retrieving plugin Error: /File[/home/admin/.puppetlabs/opt/puppet/cache/lib]: Failed to generate additional resources using 'eval_generate': Failed to open TCP connection to puppet:8140 (Connection refused - connect(2) for "puppet" port 8140) Error: /File[/home/admin/.puppetlabs/opt/puppet/cache/lib]: Could not evaluate: Could not retrieve file metadata for puppet:///plugins: Failed to open TCP connection to puppet:8140 (Connection refused - connect(2) for "puppet" port 8140) Error: Could not retrieve catalog from remote server: Failed to open TCP connection to puppet:8140 (Connection refused - connect(2) for "puppet" port 8140) Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run Error: Could not send report: Failed to open TCP connection to puppet:8140 (Connection refused - connect(2) for "puppet" port 8140) Also, I've got SSL certificate for my fqdn for my pupper server. when I do ` puppet cert -all` I can see the certificate but when I do `puppet cert list` I can't see that certificate. Am I missing something here?

puppet fails when using hiera lookup on package installation

$
0
0
Hey guys. Pretty new to puppet and am having issues with a hiera lookup specifically when installing packages. I believe puppet thinks that the package resource is missing a title - it just has a variable as a title instead of the package name. [root@canary production]# puppet agent -t Info: Using configured environment 'production' Info: Retrieving pluginfacts Info: Retrieving plugin Info: Loading facts Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Missing title. The title expression resulted in undef at /etc/puppetlabs/code/environments/production/site/profiles/manifests/common/packages.pp:5:11 on node canary.esxi.com Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run If I run puppet apply packages.pp (changing it from a class to a normal manifest) it runs fine. [root@puppet02 common]# vim /etc/puppetlabs/code/environments/production/site/profiles/manifests/common/packages.pp $packages = lookup('packages::installed') #class profiles::common::packages { package { $packages: ensure => installed, } #} As you can see "nmap" is now installed. [root@puppet02 common]# puppet apply packages.pp Notice: Compiled catalog for puppet02.esxi in environment production in 0.08 seconds Notice: /Stage[main]/Main/Package[nmap]/ensure: created Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install wget'' returned 1: Error: Nothing to do Error: /Stage[main]/Main/Package[wget']/ensure: change from purged to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install wget'' returned 1: Error: Nothing to do Notice: Applied catalog in 8.81 seconds common.yaml (where the packages are listed): [root@puppet02 common]# vim /etc/puppetlabs/code/environments/production/hieradata/common.yaml packages::installed: - bash-completion - vim - nfs-utils - iotop - ntp - epel-release - deltarpm - mlocate - nmap - tcpdump - nethogs - sysstat - wget' - git - yum-utils - bind-utils - net-tools - yum-cron I'm able to look up the "packages:installed" [root@puppet02 common]# puppet lookup packages::installed --- - bash-completion - vim - nfs-utils - iotop - ntp - epel-release - deltarpm - mlocate - nmap - tcpdump - nethogs - sysstat - wget' - git - yum-utils - bind-utils - net-tools - yum-cron [root@puppet02 common]# vim /etc/puppetlabs/code/environments/production/site/profiles/manifests/common/packages.pp $packages = lookup('packages::installed') class profiles::common::packages { package { $packages: ensure => installed, } } My site.pp file: node default { contain roles::base #notify { "This is running the default in site.pp" } }

Could anyone please let me know if there are any readily available Puppet modules for DataPower?

$
0
0
I am new to puppet and want to start with it for DataPower.

are quotes allowed with ?

$
0
0
i have a template with "<%= @fqdn %>" in it, as well as <%@ @ipaddress %>. the tag without the quotes works fine, but the tag with the quotes prints <%= @fqdn %> instead of the actual fqdn. are quotes allowed or do they need to be escaped?

Puppet 5 module set and merge array param from Hiera and node manifest

$
0
0
Hi everyone I'm trying to make a basic module in Puppet 5.5 to manage lines in a config file for an in-house app. Actually managing the file and writing the lines is the easy part but the problem I'm having is getting the params into the class. It has been a couple of years since I last used Puppet so I'm trying to get up to speed again and get used to Puppet 5.5. Basically I'm trying to find a module layout/pattern to set an array parameter at various levels through Hiera and also by adding more param values to node-level manifests. So far I have this: FILE: data/Linux.yaml --- classes: - myapp::config myapp::config::sources: - location1 - location15 - location31 FILE: manifests/server3.pp node server3 { ... class { 'myapp::config': sources => [ 'location4', 'location23', ] } } FILE: modules/myapp/manifests/config.pp class myapp::config ( Array $sources = undef, ) { $sources_h = lookup("${module_name}::sources", undef, unique, undef) $sources_all = [$sources_h, $sources, "\n"] $sources_go = unique(flatten($sources_all)) if is_array($sources_go) { $sources_str = join($sources_go, "\n") file { "/etc/myapp/config": ensure => file, owner => 'myappuser', group => 'myappgroup', mode => '0640', content => $sources_str, } } } I have other manifests in this module doing other stuff for installation and config but this is the bit I'm having most trouble with. With this setup at the moment I get "Duplicate declaration: Class is already declared cannot redeclare" - obviously because I'm declaring it in my Hiera yaml and in my node manifest. But what's a better structure here to be able to merge and combine this single parameter from Hiera and a node-manifest? I could re-engineer this and use different submodule/class names for Hiera and manifests or a different parameter name. But I'm sure I must be missing something. Any ideas or suggestions?

Symptoms Of A Fatty Liver

$
0
0


There are two different kinds of liver disease, non-alcoholic fatty liver disease and alcoholic liver disease. Alcoholic liver disease is caused by over consumption of alcohol, either from binge drinking or from long time use.

There are two main kinds of treatment of fatty liver disease, or FLD. These are alcoholic and nonalcoholic. An alcoholic knows what are the reason for their ill health is. Can you guess what it is? Of course, alcohol consumption to great excess is the primary factor in alcoholic liver cirrhosis.The components of alcohol enhance the build up of fats within your liver, resulting in the problem. It also inhibits the discharge of low-density lipoproteins, also known as LDL, in a person's circulatory system. It's these LDL's that help to transfer the fats out from the liver and without them you have a problem. If you have more fat going into your liver than going out of your liver it will be accumulated and then stored there.

Simple carbohydrates and fats are not helpful to a fatty liver because they will only add to the excess amounts of fat. Avoid these by avoiding foods such as white breads, white rice, and fatty foods like ice cream, dairy products (milk, processed cheese, yogurt), and milk chocolates.

fatty liver disease

Fatty liver disease - The most common cause of non-alcoholic fatty liver disease is insulin resistance, which in turn is commonly caused due to obesity. The extra fat in your body causes immense damage to your liver and thus must be shed at once.

After my last visit to the doctor, I got an all clear. My cholesterol and triglycerides were at optimal levels. The work isn't over, though. A lifestyle change doesn't just stop. It's something you have to work at even if you think you've got it covered.

Exercise Treatment of fatty liver disease it does a body good. With routine exercising you can increase your metabolism and immune system while getting into shape. The exercises can be as simple as walking an hour a day or going for a bike ride.

Good thing that there are tons of things that we can simply do to avoid having a fatty liver or perhaps try to reverse its effects. One good way to start is by living a much healthier lifestyle. If you cannot avoid drinking alcohol instantly, then try to gradually reduce your intake to a certain level that you will no longer be that dependent to such addicting substance.

Sometimes medications - such as the oral diabetes drugs metformin (Glucophage) and acarbose (Precose) - also are an option if you're at high risk of diabetes. This includes if your prediabetes is worsening or you have cardiovascular disease, fatty liver disease or polycystic ovary http://gannhiemmo.net/benh-gan-nhiem-mo syndrome.

require class:something

$
0
0
If I have class::something {"blah": parameter => test } How do I then "require" class::something in another resource? E.g. file {"/etc/something": ensure => present, require => class::something['blah'] }

The Advantages of Herve Leger Dresses for Cheap

$
0
0
The Birth of Herve Leger Dresses for Cheap

The kind of clothing and apparels women wear may increase their attractiveness. Without a doubt, these apparels are incredibly gorgeous and help to acquire a dazzling appearance. These hottest collections of designer apparels are offered in both stylish and conventional designer women clothing generally in the majority of the fashion malls together with in various fashion sites.


Her dress are available here. This dress are available here on sale. The tiny black dress can have many forms of design that range from low-cut to backless.


The kind of dress is going to be a deciding factor for selecting the ideal pair of shoes. A Herve Leger dress is certainly a great present to present your wife or any beloved person for this issue. These outfits arrive in a range of attractive colours and unmatched styles. They are usually short and end up to the knee. White dresses are here in order to stay, and you need to have the appropriate shoes and accessories to wear them with.


Any style of dress it's possible to try. Once you're an RTR member, you can begin renting dresses online immediately. This gold dress are available here. You can pick the Herve Leger strapless.


The dress could possibly be short in length, allowing for little less coverage for those legs or it might be tight on the body to show the woman's curves. Bandage dresses have come to be the only name in the realm of style. After you have picked the dress you wish to borrow, schedule a shipping date. In case you have any kind of issues about wherever as well as the best way to make use of herve leger carmen, you possibly can e mail us at our own web page. These exact dresses may be used as an idea when a woman would like to buy a new dress for their own occasion. IT is among the most enduring iconic dresses, loved by celebs for the last 20 years.

Ladies, you might have a try if you prefer to a slim woman, if you wish to wear the Herve Leger dresses. Women who aren't comfortable with sleeveless can elect for these as these are equally wonderful. In reality, not every woman can select a suitable Herve Leger. Almost very women contains the desire to appear gorgeous and appealing. They are always looking for the perfect little black dress. Obese women may also choose designer clothing because they're also available as clothes in bigger sizes. With the newest trend of wearing the modest white dress, many ladies become confused regarding what shoes to pair it with.

The Advantages of Herve Leger Dresses for Cheap

There are lots of colors to choose from and you can not have any difficulty getting the one she love. You also need to consider the color of suit Herve Leger. It's utilised to change color. You have to understand that their best means favorite color, which means you can possibly play safety element, buy this sort of color. There are many colors to pick from, Shop herve leger dress, you don't have a problem finding someone who like men and women. If you aren't certain what size will fit you best or are concerned about sizing, you could always get a the dress you're renting in two sizes at no charge.


The plan is breath-taking! The plan of the waist and skirt ought to be avoided complex. When you select the shapewear slip style which is most suitable for you, do your own before and after'' viewing so that you can definitely observe the difference. `Coz crop tops are likely to make you desire those enviable abs.

Ok, I Think I Understand Herve Leger Dresses for Cheap, Now Tell Me About Herve Leger Dresses for Cheap!

Combining the customary holiday sales with the normal sales schedule provides you with an even larger discount on clothing. This internet store has celebrity-inspired fashions that will cause you to look great without needing to devote a lot of money. Both of these trendy online clothing stores supply a wide variety of merchandise for women everywhere. Free People is an internet clothing store that attracts a man or woman who's free-spirited within her style. You can also buy jewelry, wraps, shoes, lingerie and shapewear, make-up, and assorted fashion solutions, in order to make certain that you ensemble is ideal and you look gorgeous with no wardrobe malfunctions! Selecting the proper perfume isn't straightforward. Women's perfume is the perfect companion.


Herve Leger is the perfect clothes for women regardless of what they do and what occasions they wish to attend. Individuals who claim that Herve Leger looks slutty really have zero idea what they're speaking about! He can be called the best dress for women.


If you would like to purchase some attractive collections, Herve Leger dew return is quite a bit greater differences. You also need to make the most of holiday sales. Trends come and go, most of us recognize that. Targeted to the young hearted girl, you'll locate the newest trend in vintage clothing and style jewelry. Even for those who have a last-minute wardrobe crisis, RTR provides next-day and even same-day delivery if you are living in Manhattan!

Can hiera match on a partial fact

$
0
0
I need to install and configure a daemon on our servers that will have different settings based on what location the server is. Our server naming convention denotes location-function-number-then if its production or dev and if its physical or virtual. So a production file server in Chicago that is a VM would be chic-file-01-pv Can Hiera match a hostname on the first three letters in the hostname? There is a slight variation on the first part that lists location because reasons. Or would it be better to use a case declaration and set a variable using a regex?

Lock user if they exist, but don't create them

$
0
0
Is there any way, in a Puppet manifest, to specify that a user should be locked if they exist, but if they don't exist, leave them absent rather than creating and then locking them? user { 'foo': ensure => absent, } will delete the specified user account, whereas I just want to lock it. user { 'foo': locked => true, } will lock the account as desired, but on systems where the account doesn't already exist, it'll create it in order to lock it, which isn't what I want at all. Ideally I'd like to do this without `exec`, but I don't see that there's really any alternative without patching the the the provider code for `user`.

user_data script on AWS Windows Instance

$
0
0
I am trying to pass a user_data script with my puppet launch code to deploy an EC2 instance and send a powershell script to just do a basic task like creating a directory and a txt file. But nothing happens on my windows instance after launch. Here are the code snippets... First image is from yaml file being referenced by hiera, second and third from my main puppet code file: ![image description](/upfiles/14412142905507962.jpg) UPDATE: I renamed the file to test.ps1.erb and created it as a erb template but it still won't work. Also tried passing normal test.ps1 script without using template which also doesn't work. Am I doing something in a wrong way? Referring to the [example](https://github.com/puppetlabs/puppetlabs-aws/blob/master/examples/puppet-enterprise/templates/windows-pe.erb) on github, I made a similar template *test.erb* (screenshot below) and that doesn't work either. test.erb ![image description](/upfiles/14413036592849612.png) **ANOTHER UPDATE:** It only works if I assign *template('module/test.erb')* directly to user_data. For some reason it won't work if the same thing comes from the yaml file through Hiera. I have no idea why is it not going the second way... Please help!

user_data script on AWS Windows Instance

$
0
0
I am trying to pass a user_data script with my puppet launch code to deploy an EC2 instance and send a powershell script to load the puppet agent at the time of ec2 instance creation. But nothing happens on my windows instance after launch. Beloware the code . I have stored the windows-pe.erb file inside /etc/puppetlabs/code/environments/production/modules/aws/templates/windows-pe.erb' i am giving the manifests as user_data =>template(aws/windows-pe.erb) Can you suggest me where i am going wrong.

Using External Facts to push server- side crafted data to nodes?

$
0
0
Hi, I have the following scenario: - One custom fact which returns a hash - To build this hash, I feed an array to the custom fact. Its values will become the hash keys Now here is the problem: I build this array inside my module. The only way I found to work around this is by creating a new, external fact, which I populate as follows: - create a new template inside the module, which will be dynamically filled in by using my module's variables - the resulting would be a YAML file loaded into: /opt/puppetlabs/facter/facts.d/my_file.yaml - the content of this YAML file is just the array I need, generated from server-side data Am I doing it right? Is there any other way to do this more easily? Thanks

Custom datacenter fact

$
0
0
I was looking at [this article](https://puppet.com/blog/hiera-hierarchies-and-custom-facts-everyone-needs) trying to create a custom fact for datacenter. Issue I have is that the code looks at the network as a /24 space. Id like to just look for the /16 network instead of defining multiple /24 networks. How do I consolidate the two lines for DC1 in to one that just looks at 10.0? Facter.add(:datacenter) do setcode do network=Facter.value(:network) case network when '10.0.2.0' 'DC1' when '10.0.3.0' 'DC1' else 'unknown' end

Linda Ikeji House > 9ja News Blogger

$
0
0

It is the definitive list of the brightest and greatest young Nigerians in the past year! For the subsequent two weeks, any complaint about any of the nominees can be sent to nominations@thefuturenigeria.com. Right after that, no other complaints will be entertained. The two-month judging method starts straight away.

How can I use my own variable in a template ERB file? Thank you so much.

$
0
0
For some reason, I am having a tough time trying to use/create my own variable in a template. Can someone please write an ultra simple init.pp and template/steven.erb file to add a variable. Here is what I am using, and it is not working: ~ The contents of the init.pp file is this ~ class transport:::config { $myvar = 'puppet is hard to learn' } ~ The config file is this ~ config.pp file { "/tmp/steven.conf": ensure => "present", content => template("transport/steven.erb") } ~ And in the transport/templates directory file steven.erb contents ~ # file managed by puppet Put in My variable here <%= @myvar %> Yes... I have been reading documentation and Puppet style guides a lot, trying to learn this and using " puppet parser validate ", so thank you!

The Abb Busbar System Cover Up

$
0
0

Mains power is going to be required by many devices. The control additionally provides a near unity power aspect. It's possible to purchase a system which is not going to serve its goal. It's also important that you know whether your operating process is 32-bit or 64-bit. Numerous operating systems are developed over time, but just a few are widely used2. Keep in mind, the objective of hydraulic systems is to make motion or force. A credit scoring system enables lenders and other financial institutions to decide on the creditworthiness of a person.


The system has only 1 bus bar together with the switch. This system, also called FICO, is the most commonly used model available. It's well worth noting that these forms of system aren't interchangeable between manufacturers. A balanced water shipping process isn't necessarily likely to pay you back in dollars once you finally go to sell your house, but nevertheless, it will provide you added comfort and enjoyment of your house for as long as you live there.

Busbar trunking systems are becoming even better. They use two types of conductors copper and aluminum. Analogue computers are simple and inexpensive to operate. The expression Computer has a broader use in its true sense. In addition, there are systems that need the release of stored hydraulic energy to alleviate pressure. To put it differently, it must supply the function for which it's been designed, and that needs a conversation with whoever is writing the program. The very first and most apparent role of the skeletal system is to deliver a framework for the body.

Top Abb Busbar System Secrets

Competitive survey of the main Busbar Trunking System manufaurers can facilitate all of the market analyzing the contemporary trends and advertising and marketing ideas. It determines the amount of test sample needed to create an equivalent biological reaction to that of standard substance. This test may be used to detect certain medications, and it is by far the most accurate among all tests utilized for detecting substance abuse, especially in low level users.

The Number One Question You Must Ask for Abb Busbar System

The one difference is on the (i) DC ground where the negative DC wires may be directly linked to the chasis of the automobile as opposed to connecting with a wire. Even though you can't prevent a number of these problems, obtaining a dependable monitoring system in place is able to help you detect them sooner. This dilemma is a result of unbalanced water feed system. Much work was conducted through the years to mitigate the consequences of arc flash and ABB has had effective countermeasure goods on the market for a number of decades. In addition, it would grow to be an even more challenging and time consuming project in the event the system were to incorporate some truly novel capabilities. Adhering to these few basic guidelines should enable you to create technically-robust solutions which you can build again and again. It is not really successful in regards to determining the precise day or week as soon as the drug was consumed.

A Secret Weapon for Abb Busbar System

Typical materials used are copper, aluminum, and a selection of copper alloys. The goal of a particular hydraulic system can fluctuate, but all hydraulic systems work through precisely the same standard concept. What's more, the opportunities as well as the threats to the growth of Busbar Trunking System market also covered at depth in this analysis document. An essential benefit of busway is its flexibility and adaptability to a variety of requirements. One of the most significant benefits of digital computer over analogue computer is greater level of accuracy. Its important drawback is the level of accuracy which is an important benefit of digital computing.

How To Effectively Burn Ugly Looking Belly Fat Without Burning A Hole In Your Pocket

How Come Fatty Liver Affects Me But Not My Hard Drinking Outer?

Viewing all 6104 articles
Browse latest View live


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