Hello,
i am trying to run a master+agent setup on two Centos 7 vms with one ethernet adapter for internetconnection and one for the connection between the 2 vms,but I cant seem to get them together.
Since i am behind a company proxy i entered the proxy in the yum.conf and the /etc/environment to get the packages.
I have given each vm an ip(ping works) in the same net for the 2. adapters and have entered the ips and hostnames in /etc/hosts.
I have tried to get this running the last one and a half day and i am out of ideas.
Anything helps.
↧
Way to get Puppet running on two VM's behind a proxy
↧
fstab management - is AlexCline-fstab module ok with 5.5.0? remove entries failing with error.
Hello,
New-ish to puppet.. I ran into a problem trying to remove an entry from fstab, using AlexCline-fstab module which I have been using for a few months. Today for the first time I was asked to remove an entry from fstab. When I attempted to update the clients, they would throw an error "....Error sending command 'match' with params nil/Unknown command". Doing some searching, others were having the problem and indications were that it was fixed, years ago. I'm using the latest 5.5.0 puppet, and the most current fstab module it appears... It looks like the module hasn't had an update since 2013. My question is, is there another fstab management module or other methods to remove defunct entries from the fstab file I should be looking at? Thanks for your time.
What is the standard/best practice method puppet users should employ to deal with fstab currently?
take care,
greg
↧
↧
Tiger Woods declared Sex Tape Is used Online Dispite Bizarre Twist
There have actually been rumors in the past that Octomom is obsessed with Starlet Angelina Jolie's lifestyle options and how she looks. I guess things will never alter with Miss Suleman's fashion style. Nevertheless, you truly do not require one if you're thinking of staring in an adult movie.
Extra Large Spending Plan: With a budget plan of $175 million "Male of Steel" has certainly put itself in contention to become among the greatest blockbusters of the summertime. The film stars Henry Cavill as the man of steel himself. During this movie we enjoy as young Clark Kent finds that he is in fact more extremely than young boy. He grows up, accepts his fate, and sets out to restore hope to the world. "Man of Steel" lands in theaters on June 14.
There is most likely a little less than fifteen minutes of real sex on the Kim Kardashian video which does not instantly make it a bomb. There is fairly little sex going on in the Pam and Tommy sex video also.
For a bulk of females sex is both a physical and emotional experience. Generally they are not as easily aroused as guys. Additionally, they hate to be looked upon as sex objects only to satisfy the needs of men.
She contradicts herself by stating these things are supposed to be private, when she understood complete well they would go viral all over the web - for this reason ending up being public. It appears that baring everything in a porn video was not hard core sufficient direct exposure for Ms. Abraham's, so she just needed to go topless for a picture shoot on the beach in Malibu. But, will she be sorry for these things one day down the road? Or is this just the beginning of her business owner profession that she talks a lot about?
It is your chest cavity and it is the reason James Earl Jones sounds the way he does in addition to Cher, George Clooney, Julia Ormond, Diane Sawyer, Peter Coyote, Kathleen Turner, and xxx movie among others. Their voices are rich, warm, and resonant. Their voices are not, nevertheless, loud, overbearing, or unpleasant to their listeners' ears. Even were they to increase their volume, they would not sound like they were screaming or shouting because they would be forecasting the voice instead.
Inspector Forecast: Given that I'm rooting for "Twilight" in every category, this must be an easy pick. However, I liked The Dark Knight a lot, in it's pitch best execution of rather literally, everything. Christopher Nolan pornzam.com has been a favorite of mine because "Memento", however I don't believe he'll be taking home the popcorn tonight. In some way, I think he'll get over it.
He is ideal about that one. There is absolutely nothing wrong with sex with a gorgeous pregnant or breast feeding woman. You must before you pass away if you have actually not had the experience.
Extra Large Spending Plan: With a budget plan of $175 million "Male of Steel" has certainly put itself in contention to become among the greatest blockbusters of the summertime. The film stars Henry Cavill as the man of steel himself. During this movie we enjoy as young Clark Kent finds that he is in fact more extremely than young boy. He grows up, accepts his fate, and sets out to restore hope to the world. "Man of Steel" lands in theaters on June 14.
There is most likely a little less than fifteen minutes of real sex on the Kim Kardashian video which does not instantly make it a bomb. There is fairly little sex going on in the Pam and Tommy sex video also.
For a bulk of females sex is both a physical and emotional experience. Generally they are not as easily aroused as guys. Additionally, they hate to be looked upon as sex objects only to satisfy the needs of men.
She contradicts herself by stating these things are supposed to be private, when she understood complete well they would go viral all over the web - for this reason ending up being public. It appears that baring everything in a porn video was not hard core sufficient direct exposure for Ms. Abraham's, so she just needed to go topless for a picture shoot on the beach in Malibu. But, will she be sorry for these things one day down the road? Or is this just the beginning of her business owner profession that she talks a lot about?
It is your chest cavity and it is the reason James Earl Jones sounds the way he does in addition to Cher, George Clooney, Julia Ormond, Diane Sawyer, Peter Coyote, Kathleen Turner, and xxx movie among others. Their voices are rich, warm, and resonant. Their voices are not, nevertheless, loud, overbearing, or unpleasant to their listeners' ears. Even were they to increase their volume, they would not sound like they were screaming or shouting because they would be forecasting the voice instead.
Inspector Forecast: Given that I'm rooting for "Twilight" in every category, this must be an easy pick. However, I liked The Dark Knight a lot, in it's pitch best execution of rather literally, everything. Christopher Nolan pornzam.com has been a favorite of mine because "Memento", however I don't believe he'll be taking home the popcorn tonight. In some way, I think he'll get over it.
He is ideal about that one. There is absolutely nothing wrong with sex with a gorgeous pregnant or breast feeding woman. You must before you pass away if you have actually not had the experience.
↧
Is It Okay To Use Wall Tiles On The Floor?
Tile Flooring from BuildDirect offers the best in sturdiness, type, and flexibility. Quick and simple to put in, with no difficult grouting to cope with, shower panels can price less than tiles providing a hygienic floor that helps repel grime and limescale. Tile work within the loos, furnishings, and art work on the walls all flowed collectively and carried his creative touch. Wall tile is usually softer and fewer durable than flooring tile. While it can generally be a larger initial cost, a tile flooring lasts longer and wears higher than many other flooring varieties, like carpet or wooden, which suggests it is a greater long-term investment.
↧
Why is puppet so hard to debug?
Puppet has got to be the single worst application I have ever had to try and debug problems with.
Why?
1) It does not tell you what files it has opened or what it has searched. The --verbose or --debug CLI options are useless in this regard.
2) Error messages are often unrelated to what is wrong. The output from "puppet agent" is often impossible to use by itself and the output in the puppet master logfile hidden.
3) There are occasions when no error is generated and a timeout occurs on the agent. Except that on the master something is wrong. See (2).
4) The documentation is atrocious and google is no help. Try using google to find which environment variables the puppet CLI tools respond to - if any.
No, I don't have time to contribute to this mess, I'm just trying to maintain it, handed over from "prior experts" that seemingly had NFI about what they were doing.
↧
↧
Why is puppet so f**** hard to debug?
Puppet has got to be the single worst application I have ever had to try and debug problems with.
Why?
1) It does not tell you what files it has opened or what it has searched. The --verbose or --debug CLI options are useless in this regard. There is no way to see what it is doing or why it fails during its "discovery phase." None at all. You can't even get it to dump the configuration that it is going to run with FFS! What kind of sh** is this?
The "--debug" should be renamed as "--some-debugging" because that is what it really is. It has got to be the single most useless "--debug" option I have ever encountered. And "--verbose" similarly renamed to "--useless-verbosity".
2) Error messages are often unrelated to what is wrong. The output from "puppet agent" is often impossible to use by itself and the output in the puppet master logfile hidden.
3) There are occasions when no error is generated and a timeout occurs on the agent. Except that on the master something is wrong. See (2).
4) The documentation is atrocious and google is no help. Try using google to find which environment variables the puppet CLI tools respond to - if any.
No, I don't have time to contribute to this mess, I'm just trying to maintain it, handed over from "prior experts" that seemingly had NFI about what they were doing.
↧
Can Puppet install a SQL Server cluster? If so, how?
Good Afternoon All,
I have been doing some searching, but couldn't find any examples of using puppet to install SQL Server clusters. Does anyone has experiencing doing so? Is there any documentation out there that anyone has ran into? Thank you in advance.
↧
Facter wildcard
Hi,
for a non-Puppet related issue I need to compile a list of all bound IP-addresses. I've tried `ip -o a`, but I've realized Puppet's installed anyway, so utilizing `facter` providing data in a more structured fashion is very welcome. I'm writing a _shell_ script, since I think it's gonna be less than 28 lines (and it has to remain maintainable for fellow devops).
However, `facter networking.interfaces` outputs still too much, so I attempted `facter networking.interfaces.*.bindings` but that doesn't output anything.
Doesn't `facter` support wildcards, does it? If it doesn't, any suggestions for a neat approach filtering out just the addresses? `grep(1)` is no solution, and ideally I don't have to install any additional tools.
↧
Manage Java keystore and certificates - Puppet 3
Hi,
I am looking to use Puppet to convert a certificate created by a Windows CA to be used on Linux with Tomcat. I then want to place it in a Java keystore and check if the cert is updated and replace the certificate in the store if required. Has anyone achieved anything similar without using the puppetlabs/java_ks as I am limited to using Puppet 3?
The way that I was thinking of doing this is by placing the cert in an eyaml file to create the cert in a directory and then use an exec to run openssl to convert the cert, keytool to place it in the store. I then thought using the refresh attribute to check when the file is changed? I am quite new to Puppet so if anyone has any better suggestions one how to do this it would be appreciated.
Thanks,
Graham
↧
↧
using a system gem out of a custom function
Hi,
I'm running 3.8.2 and I have a custom function that includes a system gem (`activesupport`). Puppet is not finding the gem despite `require 'rubygems'`. I'm guessing puppet doesn't include the systemwide location in its gem path? What's the best way to fix this?
Thanks!
↧
Can't initialise aide package after install
Am installing the aide package but there is no "notify" on the package directive to trigger the initialisation of the database. How does this get triggered (short of writing a script to detect if the database file is missing and if so, running the generate command)?
↧
No option for initialise after package installation
(Not sure if double-posting) I am attempting to install "aide" using puppet but there is no option for the initialisation of the package after the install. The "package" resource does not have "notify" capability. This seems like a basic concept, what is the work-around?
↧
Kindle 2 - things I Love And Hate About It
The Dangerous Days of Daniel X by James Patterson and Michael Ledwidge. Written to captivate the younger set, Patterson gives us a sci-fi story associated with the almost typical 15 year-old seeking revenge for his parents' large. The not-so-typical part is that Daniel a Alien Hunter, and his prey is often a six-foot insect-like alien. Oh, did I mention he has powers allow him within the quest? Best book of 2008 number 3 is only a fun read for 9-12 year-olds. Have a sequel in no time.
All it took was a series of popular books rrncluding a classic musical based 1 of them and to manufacture a an enduring property. Literarily, the Oz books haven't had a major problem with respect to appeal. Cinematically? There tend to be some flops. No you've gotten gotten an oz . movie correct since The wonderful Wizard of Oz, the Judy Garland classic. Previously.
For dieters, one should bear to mind that investing in this turn to obtain a healthier lifestyle is never easy. Changing the way you eat, incorporating exercise into your activities and overhauling your entire lifestyle is in all likelihood one of the biggest feats need to do in existence. But with the right and expert guidance, this brings you several steps nearer with a goal. Like a to is vital to keep now is always that the people you are receiving health advice from are true and knowledgeable health authorities. And Robert O. Young Ph.D is one of the top people since you can turn to today.
Like I said before, I've had my own iPad combined with the one month, but I'm not sure how I ever lived without that it. Although they're still a little pricey ($499 with the base model), if there's anyway match it into the budget, I'd personally definitely recommend buying an iPad this year, specifically you're a stressful mom. Mine husband became an instant hero after presenting me with mine iPad this Christmas. The brownie points still reside on!
Granted, yes, it's great that it's "cool" shared there . again. And I've question the readership of at the very least some genres ("Fifty Shades of Grey," anyone?) has seen a spike since people are able to ebooks 2018. However for me, nothing will ever replace the intimacy of tangibility.
We feed him Nice beginning during time and Enfamil Lipil Your.R. at night. Since he's such a giant baby, he seemed to desire more than just formula or breast milk at evening hours. When he wasn't old enough for solid food, the added rice starch in the Lipil An.R. seemed to be enough to get him sleeping through the evening [at 11 weeks]. Furthermore, it helped by using a minor spit-up problem he had.
In this era the neighborhood book store has been pushed for the back burner. It is hard to compete with the other places where sell information. There are so many places to obtain books. Can be a big book superstores may well offer discounts and other specials to draw in customers inside of. These stores try too hard being the warm comfortable starting point read. They may be often more sterile and unfeeling over a high school library. The set numerous people rules help to make your feel inadequate if you haven't read the latest best seller. These big stores are significantly less in tune with the owner as these kind of are with the masses. The masses possess usually dots on many generated sales record.
Adam WarRock is around shooting a sequence of The Variants, the hit comedy web TV series in line with the real life adventures of Eisner-winning Dallas comic book shop Zeus Comics and Remembrances. Sunday's performance will be videotaped used in a forthcoming episode, as well as the cast in the Variants can be found in attendance. WarRock is a longtime fan of series, and also penned the theme song for the show's second season. The concert is produced in association with The Variants and Zeus Comics and Collectibles.
Other than having to order your reading materials, I find that the Kindle 2 doesn't have a any other obvious potential problems. The screen is surprisingly easy with the eyes. Since i bought it I have read on it almost day-by-day for in the least 2 hours. I have gone through 2 1/2 books already and it's only been 2 many weeks. Although I am an avid reader, I go long time frames without reading a novel because I'm lazy and didn't wish to go get a new book or go towards the library. The Kindle that you simply read an e-book at the drop to a hat will be what I really love upon it.
Near the University of Tennessee campus in Knoxville, there a good inconspicuous fence surrounding an acre of land. Inside is at the very least Farm (technically called the Anthropology Research Facility). It is the only host to its kind in the world, as well as the information gathered there is around society in a mixture of applications. smooth talking stranger epub Put quite simply, the Body Farm studies death.
All it took was a series of popular books rrncluding a classic musical based 1 of them and to manufacture a an enduring property. Literarily, the Oz books haven't had a major problem with respect to appeal. Cinematically? There tend to be some flops. No you've gotten gotten an oz . movie correct since The wonderful Wizard of Oz, the Judy Garland classic. Previously.
For dieters, one should bear to mind that investing in this turn to obtain a healthier lifestyle is never easy. Changing the way you eat, incorporating exercise into your activities and overhauling your entire lifestyle is in all likelihood one of the biggest feats need to do in existence. But with the right and expert guidance, this brings you several steps nearer with a goal. Like a to is vital to keep now is always that the people you are receiving health advice from are true and knowledgeable health authorities. And Robert O. Young Ph.D is one of the top people since you can turn to today.
Like I said before, I've had my own iPad combined with the one month, but I'm not sure how I ever lived without that it. Although they're still a little pricey ($499 with the base model), if there's anyway match it into the budget, I'd personally definitely recommend buying an iPad this year, specifically you're a stressful mom. Mine husband became an instant hero after presenting me with mine iPad this Christmas. The brownie points still reside on!
Granted, yes, it's great that it's "cool" shared there . again. And I've question the readership of at the very least some genres ("Fifty Shades of Grey," anyone?) has seen a spike since people are able to ebooks 2018. However for me, nothing will ever replace the intimacy of tangibility.
We feed him Nice beginning during time and Enfamil Lipil Your.R. at night. Since he's such a giant baby, he seemed to desire more than just formula or breast milk at evening hours. When he wasn't old enough for solid food, the added rice starch in the Lipil An.R. seemed to be enough to get him sleeping through the evening [at 11 weeks]. Furthermore, it helped by using a minor spit-up problem he had.
In this era the neighborhood book store has been pushed for the back burner. It is hard to compete with the other places where sell information. There are so many places to obtain books. Can be a big book superstores may well offer discounts and other specials to draw in customers inside of. These stores try too hard being the warm comfortable starting point read. They may be often more sterile and unfeeling over a high school library. The set numerous people rules help to make your feel inadequate if you haven't read the latest best seller. These big stores are significantly less in tune with the owner as these kind of are with the masses. The masses possess usually dots on many generated sales record.
Adam WarRock is around shooting a sequence of The Variants, the hit comedy web TV series in line with the real life adventures of Eisner-winning Dallas comic book shop Zeus Comics and Remembrances. Sunday's performance will be videotaped used in a forthcoming episode, as well as the cast in the Variants can be found in attendance. WarRock is a longtime fan of series, and also penned the theme song for the show's second season. The concert is produced in association with The Variants and Zeus Comics and Collectibles.
Other than having to order your reading materials, I find that the Kindle 2 doesn't have a any other obvious potential problems. The screen is surprisingly easy with the eyes. Since i bought it I have read on it almost day-by-day for in the least 2 hours. I have gone through 2 1/2 books already and it's only been 2 many weeks. Although I am an avid reader, I go long time frames without reading a novel because I'm lazy and didn't wish to go get a new book or go towards the library. The Kindle that you simply read an e-book at the drop to a hat will be what I really love upon it.
Near the University of Tennessee campus in Knoxville, there a good inconspicuous fence surrounding an acre of land. Inside is at the very least Farm (technically called the Anthropology Research Facility). It is the only host to its kind in the world, as well as the information gathered there is around society in a mixture of applications. smooth talking stranger epub Put quite simply, the Body Farm studies death.
↧
↧
Dynamically-bound server lookup failed
I am getting the following errors on random nodes for each resource on that node, they are caching their manifest and not getting the updated manifests.
Debug: Dynamically-bound server lookup failed, falling back to server setting
Debug: Dynamically-bound port lookup failed; falling back to masterport setting
Debug: Failed to load library 'msgpack' for feature 'msgpack'
Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
Debug: file_metadata supports formats: pson yaml binary
Any ideas?
↧
The Advantages of BusbarAmpacity
↧
Can hiera match on a partial fact
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?
↧
where do I change the port number for ngnix instead of the port 80 default
I have http using port 80 already and I need to change the ngnix port default 80, which puppet file contains this configuration, every time I restart puppet it will fail since port 80 is already being used.
↧
↧
hiera_http lookup failing for jenkins Hiera data store
Hi, Few details on my setup:
Integrated Jenkins 2..11 with PE 2017.3 using PE pipeline plugin which also provides the hiera backend support. I am trying to lookup for hiera data which has been stored on my Jenkins "Hiera Data Store" as below:
test::test_hiera::myname rsharma TestBuild
Content of my hiera.yaml version 5 is as below:
version: 5
defaults:
datadir: hieradata
data_hash: yaml_data
hierarchy:
- name: 'Jenkins data source'
lookup_key: hiera_http
uris:
- "http://myjenkins:8181/hiera/lookup?scope=%{trusted.certname}&key=__KEY__"
- "http://myjenkins:8181/hiera/lookup?scope=%{trusted.certname}&key=__MODULE__"
- "http://myjenkins:8181/hiera/lookup?scope=%{trusted.certname}&key=__CLASS__"
- "http://myjenkins:8181/hiera/lookup?scope=%{trusted.certname}&key=__PARAMETER__"
- "http://myjenkins:8181/hiera/lookup?scope=%{environment}&key=__KEY__"
options:
output: json
failure: graceful
use_auth: false
auth_user: admin
auth_pass: xxxxx
Getting below error while trying to lookup a key from my puppet master.
[root@puppetmaster puppet]# puppet lookup test::test_hiera::myname --environment production --explain
Warning: Module 'puppet_enterprise': Value returned from data_hash function 'hocon_data', when using location '/etc/puppetlabs/enterprise/conf.d/pe.conf', must use keys qualified with the name of the module
Warning: Module 'pe_repo': Value returned from data_hash function 'hocon_data', when using location '/etc/puppetlabs/enterprise/conf.d/pe.conf', must use keys qualified with the name of the module
Warning: Module 'pe_repo': Value returned from data_hash function 'hocon_data', when using location '/etc/puppetlabs/enterprise/conf.d/pe.conf', must use keys qualified with the name of the module
Warning: Module 'pe_repo': Value returned from data_hash function 'hocon_data', when using location '/etc/puppetlabs/enterprise/conf.d/pe.conf', must use keys qualified with the name of the module
Warning: Module 'pe_repo': Value returned from data_hash function 'hocon_data', when using location '/etc/puppetlabs/enterprise/conf.d/pe.conf', must use keys qualified with the name of the module
Warning: Module 'pe_repo': Value returned from data_hash function 'hocon_data', when using location '/etc/puppetlabs/enterprise/conf.d/pe.conf', must use keys qualified with the name of the module
Warning: Module 'pe_repo': Value returned from data_hash function 'hocon_data', when using location '/etc/puppetlabs/enterprise/conf.d/pe.conf', must use keys qualified with the name of the module
Warning: Module 'pe_repo': Value returned from data_hash function 'hocon_data', when using location '/etc/puppetlabs/enterprise/conf.d/common.conf', must use keys qualified with the name of the module
Warning: Module 'pe_repo': Value returned from data_hash function 'hocon_data', when using location '/etc/puppetlabs/enterprise/conf.d/common.conf', must use keys qualified with the name of the module
Warning: Module 'pe_repo': Value returned from data_hash function 'hocon_data', when using location '/etc/puppetlabs/enterprise/conf.d/common.conf', must use keys qualified with the name of the module
Warning: Module 'pe_repo': Value returned from data_hash function 'hocon_data', when using location '/etc/puppetlabs/enterprise/conf.d/common.conf', must use keys qualified with the name of the module
Warning: Module 'pe_repo': Value returned from data_hash function 'hocon_data', when using location '/etc/puppetlabs/enterprise/conf.d/common.conf', must use keys qualified with the name of the module
Warning: Module 'pe_repo': Value returned from data_hash function 'hocon_data', when using location '/etc/puppetlabs/enterprise/conf.d/common.conf', must use keys qualified with the name of the module
Warning: Module 'pe_repo': Value returned from data_hash function 'hocon_data', when using location '/etc/puppetlabs/enterprise/conf.d/common.conf', must use keys qualified with the name of the module
Warning: Module 'pe_repo': Value returned from data_hash function 'hocon_data', when using location '/etc/puppetlabs/enterprise/conf.d/common.conf', must use keys qualified with the name of the module
Searching for "lookup_options"
Module data provider for module "test" not found
Searching for "test::test_hiera::myname"
Global Data Provider (hiera configuration version 5)
Using configuration "/etc/puppetlabs/puppet/hiera.yaml"
Hierarchy entry "Jenkins data source"
URI "http://myjenkins:8181/hiera/lookup?scope=jenkins&key=__KEY__"
Original uri: "http://myjenkins:8181/hiera/lookup?scope=jenkins&key=__KEY__"
No such key: "test::test_hiera::myname"
Querying http://myjenkins:8181/hiera/lookup?scope=jenkins&key=test::test_hiera::myname
URI "http://myjenkins:8181/hiera/lookup?scope=puppetmaster&key=__KEY__"
Original uri: "http://myjenkins:8181/hiera/lookup?scope=%{trusted.certname}&key=__KEY__"
No such key: "test::test_hiera::myname"
Querying http://myjenkins:8181/hiera/lookup?scope=puppetmaster&key=test::test_hiera::myname
URI "http://myjenkins:8181/hiera/lookup?scope=puppetmaster&key=__MODULE__"
Original uri: "http://myjenkins:8181/hiera/lookup?scope=%{trusted.certname}&key=__MODULE__"
No such key: "test::test_hiera::myname"
Querying http://myjenkins:8181/hiera/lookup?scope=puppetmaster&key=test
URI "http://myjenkins:8181/hiera/lookup?scope=puppetmaster&key=__CLASS__"
Original uri: "http://myjenkins:8181/hiera/lookup?scope=%{trusted.certname}&key=__CLASS__"
No such key: "test::test_hiera::myname"
Querying http://myjenkins:8181/hiera/lookup?scope=puppetmaster&key=test::test_hiera
URI "http://myjenkins:8181/hiera/lookup?scope=puppetmaster&key=__PARAMETER__"
Original uri: "http://myjenkins:8181/hiera/lookup?scope=%{trusted.certname}&key=__PARAMETER__"
No such key: "test::test_hiera::myname"
Querying http://myjenkins:8181/hiera/lookup?scope=puppetmaster&key=myname
URI "http://myjenkins:8181/hiera/lookup?scope=production&key=__KEY__"
Original uri: "http://myjenkins:8181/hiera/lookup?scope=%{environment}&key=__KEY__"
No such key: "test::test_hiera::myname"
Querying http://myjenkins:8181/hiera/lookup?scope=production&key=test::test_hiera::myname
Environment Data Provider (hiera configuration version 5)
Using configuration "/etc/puppetlabs/code/environments/production/hiera.yaml"
Hierarchy entry "Per-node data (yaml version)"
Path "/etc/puppetlabs/code/environments/production/data/nodes/puppetmaster.yaml"
Original path: "nodes/%{::trusted.certname}.yaml"
Found key: "test::test_hiera::myname" value: "sharma"
The above output shows that the lookup has many warnings also it's unable to find the value for they key. I have tried with many combination of module, class and parameter but everytime it fails. It can only able to lookup for the data which is local to master in data directory. Any help would be appreciated.
Also I can see the http request reaching to Jenkins but giving 404 error in the logs.
↧
Will a required class's File default attributes be included in the 'requiree' class?
Ex:
class ping {
File {
owner => root,
group => root,
mode => '755',
}
}
class ping::pong {
require ping
file { 'foo':
ensure => file,
}
}
Will file 'foo' from class ping::pong keep the file defaults of owner => root, group => root, mode => '755' ?
↧
Iterate through hash to change a specific key value
I have this variable in Hiera:
myUsernames:
myuser1:
dsc_username: 'myuser1'
dsc_description: 'my user account'
dsc_ensure: 'present'
dcs_password: 'some encrypted value'
myuser2:
dsc_username: 'myuser1'
dsc_ensure: 'present'
dcs_password: 'some encrypted value'
dsc_disabled: 'true'
I would like to create resources of the following format in the Puppet manifests:
dsc_user { 'myuser1':
dsc_username => 'myuser1',
dsc_description => ''my user account',
dsc_ensure => present,
dsc_password => {
'user' => 'myuser1',
'password' => Sensitive('some encrypted value')
},
dsc_disabled => true,
}
If we did not have the special password format, this would be straight forward, something like this:
each($myUsernames) |$name, $data|{
dsc_user{$name:
* => $data
}
}
Is there and easy way to iterate over the hiera hash and dynamically create de resource?
↧