Questions tagged [yaml]
Use this tag for questions about the YAML data serialization format only, not for questions about programs (or examples) that happen to have their configuration in a YAML format.
30
questions
16
votes
1
answer
45k
views
"volumes 'type' is a required property" when running docker-compose
I am working through understanding how docker-compose.yaml works. I am trying to define a volume inside the compose file and to mount it at a mount point locally. I try to run a basic .yaml to mount ...
4
votes
1
answer
5k
views
“volumes 'type' is a required property” error with docker-compose
I have just started to learn how docker works and I have a problem with the yaml file when using docker-compose.
version: '3.7'
services:
portainer:
container_name: portainer
image: ...
3
votes
1
answer
10k
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/...
3
votes
1
answer
288
views
Password of new user with LXD and Cloud-init
I'm trying to create a profile to automate the creation of a container, but I'm having trouble with cloud-init. For some reason the password is not being set for the user and is also not being added ...
2
votes
1
answer
508
views
Ansible inventory hierarchy
I want make an inventory file for Ansible as sorting-independent. There is an example below for this file:
[houston:children]
hst-lin
hst-win
[hst-lin:children]
hst-lin-prod
hst-lin-test
[hst-win:...
2
votes
1
answer
1k
views
Saltstack best practices documentation clarification
To be clear, I am not asking for the "best way" to use saltstack. I understand that there are tons of ways to use saltstack, and what works for you, works. My question is specifically about the best ...
2
votes
1
answer
993
views
How can I get pandoc to recognize my custom YAML fields?
I have a markdown file that starts like this:
---
title: Some Title
author:
- family: Barson
given: Foobius
---
And I'd like to get pandoc to extract this information and output it. So I have a ...
2
votes
1
answer
345
views
Adding a comment character to the leftmost column of YAML in Vim
When editing the following yaml with Vim:
countries:
- country:
name: France
I can comment out line 2 with :2s/^/#Enter (Case 1). The result is as expected:
countries:
# - country:
...
1
vote
1
answer
5k
views
Convert JSON to YAML using PowerShell
I have a json data like this.
sample.json
[
{
"id": 0,
"name": "Cofine",
"title": "laboris minim qui nisi esse amet non",
"description": "Consequat laborum quis exercitation culpa. ...
1
vote
1
answer
168
views
How to find matching yaml files based on content
I have a bunch of files that contain yaml. Some files are yaml-only, some have yaml front-matter. I would like to be able to query the list of files to return a list that match certain criteria. In ...
1
vote
0
answers
642
views
VSCode Ansible Language extension Python not loading
I'm trying to install the "Ansible Language" Extension for VS-Code:
https://marketplace.visualstudio.com/items?itemName=zbr.vscode-ansible
It installs the following Extensions as ...
1
vote
0
answers
325
views
Ansible YAML indentation
How to highlight ansible indentation using vim or any other text editor?
I have tried https://github.com/k1LoW/emacs-ansible, but cant able to get highlighted
1
vote
0
answers
3k
views
I cannot create a Node.JS Web App to be deployed on Azure
For the past week I've been trying to get Azure to deploy an accessible website with Node.JS. Let me re-count the steps I've done.
1) I go to Visual Studio, and I select the Basic Azure Node.js ...
1
vote
1
answer
765
views
Why is my yaml build failing test? yaml-cpp-0.6.0: handler_test.cpp:(.text+0x9f2): undefined reference to `testing::internal::GetWithoutMatchers()'
When I install the astronomy software purify.
It needs a latest version of yaml like yaml-cpp-0.6.0
I didn't encounter any errors, standard output is like
-- The C compiler identification is GNU 7.3....
1
vote
2
answers
116
views
Bash - substituting parameter in parent match (SED/AWK)
I'm working on a small script to take some variables, packageName, newVersion. I've googled and tried an awful lot and it brings me to asking.
The script executes as: updatePackage.sh -p weblogic-...
1
vote
1
answer
40
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
3
answers
22k
views
Ansible "provided hosts list is empty" error
I created an inventory file has .yml extension like below:
---
all:
server1
hosts:
server2
children:
hana:
prod:
client1:
hosts:
...
0
votes
2
answers
6k
views
configure: error: Please install libyaml
I am following the installation of Basics of YAML Parsing in PHP to install YAML for PHP in Fedora 20.
I went through all these steps:
wget http://pecl.php.net/get/yaml-1.1.0.tgz
tar -xvzf yaml-1.1....
0
votes
1
answer
41
views
pandoc/Markdown: how to remove trailing commas from list template?
Suppose I have YAML list (or other supported format) that I want to print as a comma-separated list in a markdown format.
data.yml:
---
items:
- item1
- item2
- item3
---
template....
0
votes
1
answer
3k
views
Alacritty: YAML config is deprecated, please migrate to TOML using `alacritty migrate`
Everytime I start alacritty I get the following error messages:
[0.000620404s] [WARN ] [alacritty] YAML config "/home/l540/.config/bspwm/alacritty/alacritty.yml" is deprecated, please ...
0
votes
0
answers
65
views
Influx Connection fails with: '401: "error":"authorization failed"
I would like to use an existing (external) Influx instance as a sensor in HA.
I have the following setup:
Server 1: Homeassistant OS installed
Core 2024.1.3
Supervisor 2023.12.0
Operating System 11....
0
votes
0
answers
207
views
How to convert this Influx querie into Homeassistant sensor value?
I need help converting an InfluxDB query into YAML format that can be read by Homeassistant.
The Influx database is hosted on an external server and is also seamlessly integrated into dashboards by ...
0
votes
1
answer
1k
views
Making Ubuntu Server get IPv4 address?
I am having an issue when I go to use sudo netplan apply. I get an error. its going to be where the 1st x in addresses is x.x.x.x/x
it gives me an expected sequence error.
it is ubuntu 18.04
Any ...
0
votes
1
answer
457
views
Is it possible to make a YAML use ISO 8601 date format?
I am using a tool called organize in order to sort folders with a lot of stuff in them and was wondering if it was possible to tell it to create, sort, or rename using ISO 8601 date format.
The config ...
0
votes
1
answer
461
views
Ansible Conditional Role Dependencies
I have a question that has been bugging me for quite some time and I cannot find a proper way to handle it. I read all the documentation I could get, but I cannot find a satisfying answer.
Consider my ...
0
votes
1
answer
81
views
Is there a standard for this file format?
I run an Ubiquity Edge router which itself is based upon Vyatta (it does not matter, it is just in case someone knew the product).
The configuration file looks like that
(...)
service {
dhcp-...
0
votes
1
answer
1k
views
Cloud formation error: Invalid template resource property 'Path'"
I have an issue with the YAML template that is creating a Kafka cluster. I think it is an indentation error at line 457 or below. At the moment I have the following error:
Invalid template resource ...
0
votes
1
answer
1k
views
Mount multiple NFS shares in RancherOS
I am setting up a RancherOS VM on my FreeNAS server and I am having trouble setting up NFS shares. I have a .yml file that is able to set up one share mount but I would like to be able to set up two ...
0
votes
1
answer
2k
views
YAML Syntactical Error
The following is my yaml file for a ansible configuration of a cisco device. In /etc/ansible/hosts I have also edited the hosts file to reflect my Amazon EC2 Ami instance as can be seen below
[ec2-...
0
votes
1
answer
1k
views
Why do tabs in YAML work some but not at all times?
We've used tab-characters in some of YAML-files here:
host: "foo"
port: 8011
p: "bar"
For some reason, the same version of Ansible running the same playbook works just fine with these files ...