YaML is a human-readable data serialisation format.

learn more… | top users | synonyms

0
votes
0answers
11 views

Saltstack for firewalld

I am trying to get a state set up so that I can add the associated ports open in firewalld. Tried every example I can find and all fail. Here is my current: firewalld: service.running: - ...
0
votes
1answer
22 views

Unable to form a link of a file which is in sites-available to a directory sites-enabled in remote server using ansible?

Unable to form a link of a file which is in sites-available to a directory sites-enabled in remote server using ansible? This is command I want to execute using file module of ansible: ln -s /etc/...
1
vote
1answer
93 views

Commands not working “with_item” in ansible playbook

I am new to ansible and trying to write a basic playbook for mongodb backup with simplest method. here is what i am trying to do: --- - hosts: mongo tasks: - name: Mongo Dump command: ...
1
vote
2answers
134 views

Get current hostname and push it into conf file with ansible

I'm working into an ansible playbook to get the current hostname of a server and then set it into a configuration file. I cannot figure it out how can I push the shell output using the lineinfile ...
-2
votes
1answer
48 views

Return yaml value to puppet fact lookup

I'm trying to resolve a YAML value in a module file { '/boot/config.txt' : ensure => present, mode => '0755', content => $::hostname?{ 'serverName1.domain' => template('...
0
votes
1answer
113 views

How can I install Development Tools via vagrant and ansible on Centos 6.7

I get this error when running my first ansible playbook (i.e. I am not familiar with ansible yet) TASK: [Install packages] ****************************************************** failed: [default] =&...
5
votes
1answer
39 views

Why do some r10k configuration files start their YAML lines with :?

I'm looking at setting up r10k for Puppet deployment, and I have various example r10k.yaml configuration files, but some seem to use an extra : at the start of many lines, for instance, at http://www....
0
votes
0answers
147 views

Puppet server not picking up node's hiera facts

I am trying to make a simple configuration in puppet. The idea is that a machine reports the type of data it wants and puppet supplies the configuration. I am using Puppet 4.2 and the example below ...
3
votes
1answer
1k views

dict as value for YAML key in an Ansible task

I am unable to figure out how to pass a dictionary/hash-map of key-value pairs as the value for an option in an ansible tasks. Default Options: # roles/ec2/defaults/main.yml ec2: key_name: "{{ ...
1
vote
2answers
65 views

Linux program used to gather installed packages, processes, listening ports, etc.?

It's hard to Google this because it seems like everyone and their kid sister has written a script to gather system stats! I once saw a mature program written that is used to gather system stats like ...
0
votes
1answer
2k views

saltstack configuration “No Top file or external nodes data matches found”

A very similar version of this question is asked here , but it's completely different since the person had their top file in the wrong directory. I have 3 projects, that I'll call project1, ...
0
votes
2answers
530 views

CoreOS on Google Compute Engine

I have followed the CoreOS on GCE guide. But looks like I am having problems understanding what the user-data metadata field is, and how to get my cloud-config file to be read.. In a directory that ...
0
votes
2answers
157 views

Hiera datatypes wont load in Puppet

I have spent a couple of days on this, followed the instructions on http://downloads.puppetlabs.com/docs/puppetmanual.pdf and even the Puppet Training Advanced Puppet manual. When I run a test ...
2
votes
1answer
3k views

How to define multiple /etc/hosts entries with Puppet ENC?

I'm writing an External Node Classifier for my Puppet infrastructure, and I have the need to manipulate the /etc/hosts file on each node. The following (due to the duplicate key) is invalid YAML: --- ...
3
votes
1answer
595 views

Verifying Salt states before committing

I'm storing my salt sls files in a git repository, but I have the perennial problem that I can't verify my YAML represents a valid set of states that could be applied (I've also had difficulty ...