Questions tagged [yaml]

YaML is a human-readable data serialisation format.

YAML is a data serialisation format designed to be written and read by humans. Modern YAML is a superset of JSON, meaning that YAML parsers can consume any valid JSON as well as the richer and more human-friendly long form.

For more information refer to the YAML Wikipedia page or the YAML homepage.

86 questions
1
vote
0 answers

Best way to declare Icinga host variables in an Ansible variable

I am writing an Ansible role to build some Icinga 2 configurations, and the more important is the configuration of a client host in a distributed Icinga installation. I want to declare Icinga 2 host variables in an Ansible variable which can be…
Mat
  • 1,783
  • 4
  • 22
  • 39
1
vote
1 answer

Ansible expect is not sending response

I'm new to ansible and trying it by writing an ansible playbook for installing graphite, as a part of it I have the graphite-manage syncdb command which I would like to automate. I wrote this task to automatically answer to the promts but for some…
rivar_
  • 13
  • 1
  • 4
1
vote
3 answers

Can you set the number of rounds that ansible's password_hash jinja2 filter uses?

In ansible, it's pretty convenient to use something like this: - name: Make sure user password is set user: name: my_user password: "{{ user_password|password_hash('sha512', 'SomeSalt') }}" where user_password is the plaintext password,…
Tal
  • 295
  • 1
  • 4
  • 11
1
vote
1 answer

app.yaml isn't updated when I deploy (Google App engine/Google Cloud Platform)

This is my default app.yaml file: runtime: custom env: flex service: api runtime_config: jdk: openjdk8 handlers: - url: /.* script: this field is required, but ignored automatic_scaling: min_num_instances: 1 max_num_instances: 10 When I…
1
vote
1 answer

CloudFormation template: how to use Sub and GetAtt at the same time in short form?

I'm using yaml. So, we can use either: !GetAtt [ WebServer, AvailabilityZone ] !GetAtt WebServer.AvailabilityZone Also, we can use: !Sub 'sometext-${AWS::StackName}' how can I use GetAtt output instead of ${AWS::StackName}, preferably using the…
Putnik
  • 2,095
  • 3
  • 23
  • 40
1
vote
1 answer

How to use vars in ansible roles

I want to create a ansible role to add user with ssh_keys ├── ansible.cfg ├── hosts ├── playbooks │   └── add_user.yml └── roles └── add-user ├── files │   ├── ansible.pub │   ├── dhirendra.pub │   ├──…
1
vote
1 answer

CloudFormation stack yaml syntax?

I'm trying to create a SecurityGroup which has a tag like Name: SG-StackName. This code works perfect in json: "Resources": { "SecurityGroup": { "Type": "AWS::EC2::SecurityGroup", "Properties": { ... …
Putnik
  • 2,095
  • 3
  • 23
  • 40
1
vote
1 answer

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: - enable: True default_zone: - public services: …
1
vote
1 answer

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: mongodump --out mdb_backup/mongodb_backup/ - name:…
Ali Warrich
  • 21
  • 1
  • 2
1
vote
1 answer

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] => (item=@Development tools,git,curl,htop) =>…
codecowboy
  • 1,287
  • 5
  • 17
  • 31
1
vote
2 answers

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 installed packages, listening ports, users,…
Synthead
  • 131
  • 2
1
vote
1 answer

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, project2, and project3. My goal was to create a…
trueCamelType
  • 1,016
  • 5
  • 19
  • 41
1
vote
0 answers

Multiple VM deployment via GCP Deployment Manager

What I want to achieve: I want to be able to create multiple VM instance using AWX playbook or Deployment Manager. The script will read instance configuration in a csv uploaded to gcloud or bitbucket, then create the resources as the values in the…
Sunny J
  • 607
  • 3
  • 14
1
vote
0 answers

yaml.parser.ParserError: while parsing a block mapping

I followed this document while configuring patroni and I have a problem with patroni.service file like this https://snapshooter.com/learn/postgresql/postgresql-cluster-patroni [Unit] Description=Runners to orchestrate a high-availability…
1
vote
0 answers

Configure AWS Cloudfront to send custom query params to origin

is it possible to configure my AWS Cloudfront distribution to append to the request a custom query param (e.g a private key) before sending it to origin? For example, the front end is calling *.cloudfront.net/get and cloudfront forwarding the…