Skip to content

Commit fe6ce81

Browse files
committed
fix(yamllint): fix all errors
```bash mongodb-formula$ yamllint -s . ./pillar.example 1:1 error too many blank lines (1 > 0) (empty-lines) 2:1 warning missing document start "---" (document-start) 11:15 warning truthy value should be one of [false, true] (truthy) 16:9 error syntax error: found character '%' that cannot start any token 17:89 error line too long (152 > 88 characters) (line-length) 34:89 error line too long (152 > 88 characters) (line-length) 36:89 error line too long (152 > 88 characters) (line-length) 38:89 error line too long (152 > 88 characters) (line-length) 184:1 error too many blank lines (1 > 0) (empty-lines) ./test/pillar/mongodb.sls 1:1 warning missing document start "---" (document-start) 2:13 warning truthy value should be one of [false, true] (truthy) ./mongodb/defaults.yaml 1:1 warning missing document start "---" (document-start) 6:20 warning truthy value should be one of [false, true] (truthy) 7:18 warning truthy value should be one of [false, true] (truthy) 20:89 error line too long (96 > 88 characters) (line-length) 45:22 warning truthy value should be one of [false, true] (truthy) 57:21 error too many spaces inside braces (braces) 57:33 error syntax error: expected ',' or '}', but got '[' 57:56 error too many spaces inside braces (braces) 90:21 error too many spaces inside braces (braces) 90:56 error too many spaces inside braces (braces) 114:15 warning truthy value should be one of [false, true] (truthy) 116:17 warning truthy value should be one of [false, true] (truthy) 135:14 warning missing starting space in comment (comments) 139:21 error too many spaces inside braces (braces) 139:56 error too many spaces inside braces (braces) ./mongodb/osfamilymap.yaml 5:1 warning missing document start "---" (document-start) 11:6 warning missing starting space in comment (comments) 15:89 error line too long (90 > 88 characters) (line-length) 17:89 error line too long (152 > 88 characters) (line-length) 37:89 error line too long (91 > 88 characters) (line-length) 39:89 error line too long (152 > 88 characters) (line-length) 47:89 error line too long (110 > 88 characters) (line-length) 50:89 error line too long (91 > 88 characters) (line-length) 52:89 error line too long (152 > 88 characters) (line-length) 53:1 error too many blank lines (1 > 0) (empty-lines) ./mongodb/robo3t/defaults.yaml 1:1 warning missing document start "---" (document-start) 4:89 error line too long (96 > 88 characters) (line-length) 5:89 error line too long (152 > 88 characters) (line-length) 7:15 warning truthy value should be one of [false, true] (truthy) 8:18 warning truthy value should be one of [false, true] (truthy) ./mongodb/compass/defaults.yaml 1:1 warning missing document start "---" (document-start) 4:89 error line too long (96 > 88 characters) (line-length) 5:89 error line too long (152 > 88 characters) (line-length) 7:15 warning truthy value should be one of [false, true] (truthy) 8:18 warning truthy value should be one of [false, true] (truthy) ```
1 parent 0b748ff commit fe6ce81

File tree

8 files changed

+103
-63
lines changed

8 files changed

+103
-63
lines changed

mongodb/compass/defaults.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1+
# -*- coding: utf-8 -*-
2+
# vim: ft=yaml
3+
---
14
mongodb:
25
robo3t:
36
version: 1.2.1
7+
# yamllint disable-line rule:line-length
48
url: https://download.robomongo.org/RELEASE/linux/robo3t-RELEASE-linux-x86_64-3e50a65.tar.gz
9+
# yamllint disable-line rule:line-length
510
source_hash: sha512=ead2c4847dc1cd4024f60f34a142af6c6818f90a37b5ae075c8b65414ee8ca8074355446c9e264094f776f7798bfba37a7c7018f94d0bec109715061ab3a57c3
611
package: robo3t
7-
use_repo: False
8-
use_archive: True
12+
use_repo: false
13+
use_archive: true
914
binpath: None

mongodb/defaults.yaml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1+
# -*- coding: utf-8 -*-
2+
# vim: ft=yaml
3+
---
14
mongodb:
25
system:
36
pip: python-pip
47
userhome: /home
58
prefix: /opt
6-
use_firewalld: False
7-
use_selinux: False
9+
use_firewalld: false
10+
use_selinux: false
811
pidpath: /var/run/mongodb
912
deps:
1013
- curl
@@ -17,6 +20,7 @@ mongodb:
1720
robo3t:
1821
version: 1.2.1
1922
binpath: /usr/local
23+
# yamllint disable-line rule:line-length
2024
url: https://download.robomongo.org/RELEASE/linux/robo3t-RELEASE-linux-x86_64-3e50a65.tar.gz
2125

2226
compass:
@@ -43,7 +47,7 @@ mongodb:
4347
conf_path: /etc/mongod.conf
4448
conf:
4549
systemLog:
46-
logAppend: False
50+
logAppend: false
4751
destination: file
4852
path: /var/log/mongodb/mongod.log
4953
storage:
@@ -55,7 +59,7 @@ mongodb:
5559
sharding:
5660
clusterRole: shardsvr
5761
net:
58-
bindIp: {{ grains.ipv4[-1] or grains.ipv6[-1] }}
62+
bindIp: '{{ grains.ipv4[-1] or grains.ipv6[-1] }}'
5963
port: 27018
6064
processManagement:
6165
timeZoneInfo: /usr/share/zoneinfo
@@ -88,7 +92,7 @@ mongodb:
8892
fork: true
8993
pidFilePath: /var/run/mongodb/mongos.pid
9094
net:
91-
bindIp: {{ grains.ipv4[-1] or grains.ipv6[-1] }}
95+
bindIp: '{{ grains.ipv4[-1] or grains.ipv6[-1] }}'
9296
port: 28017
9397
sharding:
9498
configDB: 'rs1/{{ grains.ipv4[-1] or grains.ipv6[-1] }}:27018'
@@ -112,9 +116,9 @@ mongodb:
112116

113117
bic:
114118
version: 2.7.0
115-
use_repo: False
119+
use_repo: false
116120
use_archive: true
117-
use_schema: True
121+
use_schema: true
118122
binpath: /usr/local/bic
119123
user: mongodb
120124
group: mongodb
@@ -133,11 +137,11 @@ mongodb:
133137
mongodb:
134138
net:
135139
uri: '{{ grains.ipv4[-1] or grains.ipv6[-1] }}:27018'
136-
#auth:
140+
# auth:
137141
# username: root
138142
# password: changeme
139143
net:
140-
bindIp: {{ grains.ipv4[-1] or grains.ipv6[-1] }}
144+
bindIp: '{{ grains.ipv4[-1] or grains.ipv6[-1] }}'
141145
port: 29017
142146
systemd:
143147
file: /usr/lib/systemd/system/mongosqld.service

mongodb/oscodemap.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
### mongodb/codenamemap.yaml
21
# -*- coding: utf-8 -*-
32
# vim: ft=yaml
4-
3+
---
54
{% macro distro_codename(os, codename, tag, comp='') %}
65
{{ codename|default(codename, true) }}:
76
bic:
7+
# yamllint disable-line rule:line-length
88
url: 'https://info-mongodb-com.s3.amazonaws.com/mongodb-bi/v2/mongodb-bi-linux-x86_64-{{ tag }}-vRELEASE.tgz'
99

1010
server:
@@ -16,6 +16,7 @@
1616

1717
{%- if grains.os_family in ('Debian', 'Ubuntu',) %}
1818

19+
# yamllint disable-line rule:line-length
1920
name: 'deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/{{ os }} {{ codename }}/mongodb-org/RELEASE {{ comp or '' }}'
2021
file: /etc/apt/sources.list.d/mongodb-org-RELEASE.list
2122
keyid: 9DA31620334BD75D9DCB49F368818C72E52529D4
@@ -24,16 +25,17 @@
2425

2526
{%- else %}
2627

28+
# yamllint disable-line rule:line-length
2729
baseurl: 'https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/RELEASE/$basearch/'
2830
name: mongodb-org-RELEASE
2931
humanname: MongoDB RELEASE Repository
3032
gpgkey: 'https://www.mongodb.org/static/pgp/server-RELEASE.asc'
3133
from_repo_value: ''
32-
34+
3335
{%- endif %}
3436
{% endmacro %}
3537

36-
#Debian
38+
# Debian
3739
{{ distro_codename('debian', 'jessie', 'debian81', 'main') }}
3840
{{ distro_codename('debian', 'stretch', 'debian92', 'main') }}
3941
{{ distro_codename('debian', 'buster', 'debian92', 'main') }}
@@ -43,16 +45,15 @@
4345
{{ distro_codename('debian', 'Debian GNU/Linux 10 (buster)', 'debian92', 'main') }}
4446
{{ distro_codename('debian', 'Debian GNU/Linux 11 (bullseye)', 'debian92', 'main') }}
4547

46-
#Ubuntu
48+
# Ubuntu
4749
{{ distro_codename('ubuntu', 'trusty', 'ubuntu1404', 'multiverse') }}
4850
{{ distro_codename('ubuntu', 'xenial', 'ubuntu1604', 'multiverse') }}
4951
{{ distro_codename('ubuntu', 'bionic', 'ubuntu1804', 'multiverse') }}
5052
{{ distro_codename('ubuntu', 'cosmic', 'ubuntu1804', 'multiverse') }}
5153

52-
#Redhat
54+
# Redhat
5355
{{ distro_codename('rhel', 'CentOS Linux 7 (Core)', 'rhel70') }}
5456
{{ distro_codename('rhel', 'Fedora 27 (Twenty Seven)', 'rhel70') }}
5557
{{ distro_codename('rhel', 'Fedora 28 (Twenty Eight)', 'rhel70') }}
5658
{{ distro_codename('rhel', 'Fedora 29 (Twenty Nine)', 'rhel70') }}
5759
{{ distro_codename('rhel', 'Fedora 30 (Thirty)', 'rhel70') }}
58-

mongodb/osfamilymap.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
1-
### mongodb/osfamilymap.yaml
21
# -*- coding: utf-8 -*-
32
# vim: ft=yaml
4-
3+
---
54
Arch:
65
server:
76
use_repo: false
87

98
Debian:
109
server:
11-
#deb unofficial packages conflict with MongoDB offical supported packages
10+
# deb unofficial packages conflict with MongoDB offical supported packages
1211
use_repo: true
1312

1413
compass:
14+
# yamllint disable-line rule:line-length
1515
url: https://downloads.mongodb.com/compass/mongodb-compass-community_RELEASE_amd64.deb
1616
### hash for v1.17.0
17+
# yamllint disable-line rule:line-length
1718
source_hash: sha512=cc6b23e9e18cafc06831a51c16ca7e1d3725fc1c49e98b307d0bfe693881b0c1f088f2c231bd519eba6888a1b96733d718e25fcc7c20595b19f01183812c557d
1819

1920

@@ -34,8 +35,10 @@ RedHat:
3435
group: mongod
3536

3637
compass:
38+
# yamllint disable-line rule:line-length
3739
url: https://downloads.mongodb.com/compass/mongodb-compass-community-RELEASE.x86_64.rpm
3840
### hash for v1.17.0
41+
# yamllint disable-line rule:line-length
3942
source_hash: sha512=4478943e1dea416c17bec6603f46a8fa4c4248e3e9a5aad2f8ca2d9911146a96586713c07306a683a3129672d36cc0f7ff09a1e352c56f5d5326e9cf6fce5278
4043

4144

@@ -44,10 +47,12 @@ Suse:
4447
url: 'https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-suse12-RELEASE.tgz'
4548

4649
bic:
50+
# yamllint disable-line rule:line-length
4751
url: 'https://info-mongodb-com.s3.amazonaws.com/mongodb-bi/v2/mongodb-bi-linux-x86_64-suse12-vRELEASE.tgz'
4852

4953
compass:
54+
# yamllint disable-line rule:line-length
5055
url: https://downloads.mongodb.com/compass/mongodb-compass-community-RELEASE.x86_64.rpm
5156
### hash for v1.17.0
57+
# yamllint disable-line rule:line-length
5258
source_hash: sha512=4478943e1dea416c17bec6603f46a8fa4c4248e3e9a5aad2f8ca2d9911146a96586713c07306a683a3129672d36cc0f7ff09a1e352c56f5d5326e9cf6fce5278
53-

mongodb/osmap.yaml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,57 @@
1-
### mongodb/osmap.yaml
21
# -*- coding: utf-8 -*-
32
# vim: ft=yaml
4-
3+
---
54
Amazon:
65
## placeholder, not tested
76
server:
87
url: 'https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-amazon2-RELEASE.tgz'
98
### hash for v4.0.3
9+
# yamllint disable-line rule:line-length
1010
source_hash: sha512=1b95e54898fb2c7304e62401de194636916e29d7368f4fd6b374f842982782884fb6fd1ff7da05f23ea799d18121107692ca4beff10bfbf967365b9dc3609f84
1111

1212
bic:
13+
# yamllint disable-line rule:line-length
1314
url: 'https://info-mongodb-com.s3.amazonaws.com/mongodb-bi/v2/mongodb-bi-linux-x86_64-amzn64-vRELEASE.tgz'
1415
### hash for v2.7.0
16+
# yamllint disable-line rule:line-length
1517
source_hash: sha512=b8db744c52c57e576840248d75061105ba692110721fcab474c926da4ba713a734198784a69be23e9dd2927a40f737e701bd2a5594c3797ac420b5a21c4007a9
1618

1719

1820
Windows:
1921
server:
2022
version: 4.0
23+
# yamllint disable-line rule:line-length
2124
url: 'http://downloads.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-vRELEASE-latest.zip'
2225
### hash for v4.0
26+
# yamllint disable-line rule:line-length
2327
source_hash: sha512=b53a1bb564bddf2e325760b64497719492c39cf35543d9ed989fabefe01abb3c272cb8178902b9cd930ff36b1b94da9fd148617af10fd2845f512d195603b8ce
2428

2529
bic:
30+
# yamllint disable-line rule:line-length
2631
url: 'https://info-mongodb-com.s3.amazonaws.com/mongodb-bi/v2/mongodb-bi-win32-x86_64-vRELEASE.msi'
2732
### hash for v2.7.0
33+
# yamllint disable-line rule:line-length
2834
source_hash: sha512=808e947d83f44957d35f1514f4eef8e6b6290069d2c814c8bc8e279270eab19f4066c4392227a41f99aa0c21087fb04722fa430640acdba8fb46ef7f1decb580
2935

3036
robo3t:
37+
# yamllint disable-line rule:line-length
3138
url: https://download.robomongo.org/RELEASE/windows/robo3t-RELEASE-windows-x86_64-3e50a65.zip
3239
### hash for v1.2.1
40+
# yamllint disable-line rule:line-length
3341
source_hash: sha512=1d143a4eb96f639102e3586445204d111cc94accbc3e3724c973f5e34d3df2ba971601eee9b2fe2601d694067577324160fb7bf9a3e1f1daad0b91cd1c717237
3442

3543
compass:
44+
# yamllint disable-line rule:line-length
3645
url: https://downloads.mongodb.com/compass/mongodb-compass-community-RELEASE-win32-x64.zip
3746
### hash for version 1.17.0
47+
# yamllint disable-line rule:line-length
3848
source_hash: sha512=d8e98efea4a694786556773ad8234eb8b85f04afc3b31c75a81c4e81f3a2a5be75298ec78b5666bedc4d6f1bdb8b43b6880670b50c7767ce11874875dff54541
3949

4050

4151
MacOS:
4252
system:
43-
use_firewalld: False
44-
use_selinux: False
53+
use_firewalld: false
54+
use_selinux: false
4555
userhome: /users
4656
{% if grains.os == 'MacOS' %}
4757
user: {{ salt['pillar.get']('mongodb:server:user', salt['cmd.run']("stat -f '%Su' /dev/console")) }}
@@ -55,25 +65,31 @@ MacOS:
5565
binpath: /usr/local/mongodb
5666
url: 'https://fastdl.mongodb.org/osx/mongodb-osx-ssl-x86_64-RELEASE.tgz'
5767
### hash for v4.0.3
68+
# yamllint disable-line rule:line-length
5869
source_hash: sha512=001f2f480ef70edc423f08ff3b8d299a404f3544318737aa7db3a303e681b5ba3e6b3c605a84ea75b48e7ed9427a8ddbad39b85811f353180e95b1054480b166
5970
mongod:
6071
service: org.mongo.mongodb.mongod
6172
mongos:
6273
service: org.mongo.mongodb.mongos
6374

6475
bic:
76+
# yamllint disable-line rule:line-length
6577
url: 'https://info-mongodb-com.s3.amazonaws.com/mongodb-bi/v2/mongodb-bi-osx-x86_64-vRELEASE.tgz'
6678
### hash for v2.7.0
6779
source_hash: md5=b88ccf9ce4ff785fd1e65add94e4eb8e
6880
mongosqld:
6981
service: org.mongo.mongodb.mongosqld
7082

7183
robo3t:
84+
# yamllint disable-line rule:line-length
7285
url: https://download.robomongo.org/RELEASE/osx/robo3t-RELEASE-darwin-x86_64-3e50a65.dmg
7386
### hash for v1.2.1
87+
# yamllint disable-line rule:line-length
7488
source_hash: sha512=1abd0f592503c100271646ce172c4af5c1f9fb322840dc7087eb0810a31368332a671523a1dc52ce7a4a5e37d36190405188bf6fb22c857fe132ea1b15548bf9
7589

7690
compass:
91+
# yamllint disable-line rule:line-length
7792
url: https://downloads.mongodb.com/compass/mongodb-compass-community-RELEASE-darwin-x64.dmg
7893
### hash for v1.17.0
94+
# yamllint disable-line rule:line-length
7995
source_hash: sha512=cc6b23e9e18cafc06831a51c16ca7e1d3725fc1c49e98b307d0bfe693881b0c1f088f2c231bd519eba6888a1b96733d718e25fcc7c20595b19f01183812c557d

mongodb/robo3t/defaults.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1+
# -*- coding: utf-8 -*-
2+
# vim: ft=yaml
3+
---
14
mongodb:
25
robo3t:
36
version: 1.2.1
7+
# yamllint disable-line rule:line-length
48
url: https://download.robomongo.org/RELEASE/linux/robo3t-RELEASE-linux-x86_64-3e50a65.tar.gz
9+
# yamllint disable-line rule:line-length
510
source_hash: sha512=ead2c4847dc1cd4024f60f34a142af6c6818f90a37b5ae075c8b65414ee8ca8074355446c9e264094f776f7798bfba37a7c7018f94d0bec109715061ab3a57c3
611
package: robo3t
7-
use_repo: False
8-
use_archive: True
12+
use_repo: false
13+
use_archive: true
914
binpath: None

0 commit comments

Comments
 (0)