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.

92 questions
1
vote
1 answer

Install gRPC php extension in elastic-beanstack

I need to install gRPC php extension elastic-beanstack. The way i found is to write a config file inside ".ebextensions" in order to automatically install the extension. For that I need to create yaml or json file. I need to add the following…
Maverick
  • 11
  • 2
1
vote
1 answer

Gitlab CI/CD with conditional scripts

Here is what I wish to do in GitLab CI/CD: Whenever something is pushed into a specific branch I wish to have multiple scrips and CI/CD should decide which script should be run based on the pushed files list. For example: IF anything changed in…
Bert
  • 1,028
  • 1
  • 16
  • 33
1
vote
1 answer

"Report-To" HTTP header implementation for GAE Standard

I'm attempting to add a "Report-To:" HTTP header to our App Engine's app.yaml configuration file for integration with https://report-uri.com (based on the Reporting API here, here, and here) but when I push the changes to the repository, Cloud Build…
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,873
  • 7
  • 25
  • 41
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_
  • 113
  • 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
  • 305
  • 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,217
  • 4
  • 27
  • 43
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,217
  • 4
  • 27
  • 43
1
vote
1 answer

How do I loop over items 1 by 1 in Ansible config (YAML/Jinja2)?

I am trying to loop over my hosts from my inventory in Ansible, and use the name of the host of that iteration in a command. In particular, I am trying to set the hostname of each of my hosts to whatever I have called them in my hosts file. So, I…
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,307
  • 7
  • 18
  • 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