feat(semantic-release): implement for this formula

* Based on `ssf-formula` (v0.3.0)
  - https://github.com/myii/ssf-formula/pull/5
* Unable to use `pillar.example` directly for testing
  - Used it as a basis for `test/salt/pillar/default.sls`
  - Brought useful changes back to `pillar.example`
* Fix: avoid `users/googleauth.sls` for `RedHat` & `Suse`
* Close #203
This commit is contained in:
Imran Iqbal
2019-08-07 15:20:26 +01:00
parent 5517d954e8
commit 3bcdc902dc
20 changed files with 1167 additions and 102 deletions
+22 -22
View File
@@ -1,3 +1,6 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
users-formula:
use_vim_formula: True
lookup: # override the defauls in map.jinja
@@ -7,8 +10,20 @@ users-formula:
groups:
foo:
state: present
gid: 500
gid: 1500
system: False
badguys:
absent: True
niceguys:
gid: 4242
system: False
addusers: root
delusers: toor
ssl-cert:
system: True
members:
- www-data
- openldap
users:
## Minimal required pillar values
@@ -16,7 +31,6 @@ users:
fullname: A User
## Full list of pillar values
allow_gid_change: False
buser:
fullname: B User
password: $6$w.............
@@ -35,7 +49,7 @@ users:
workphone: "(555) 555-5555"
homephone: "(555) 555-5551"
manage_vimrc: False
allow_gid_change: True
allow_gid_change: False
manage_bashrc: False
manage_profile: False
expire: 16426
@@ -61,7 +75,7 @@ users:
remove_groups: False
prime_group:
name: primarygroup
gid: 500
gid: 1501
groups:
- users
optional_groups:
@@ -138,7 +152,7 @@ users:
google_2fa: True
google_auth:
ssh: |
sshd: |
SOMEGAUTHHASHVAL
" RESETTING_TIME_SKEW 46956472+2 46991595-2
" RATE_LIMIT 3 30 1415800560
@@ -158,14 +172,14 @@ users:
# 'source' allows you to define an arbitrary directory to sync, useful to use for default files.
# should be a salt fileserver path either with or without 'salt://'
# if not present, it defaults to 'salt://users/files/user/<username>
source: users/files/default
template: jinja
source: users/files
# template: jinja
# You can specify octal mode for files and symlinks that will be copied. Since version 2016.11.0
# it's possible to use 'keep' for file_mode, to preserve file original mode, thus you can save
# execution bit for example.
file_mode: keep
# You can specify octal mode for directories as well. This won't work on Windows minions
#dir_mode: 775
# dir_mode: 775
sym_mode: 640
exclude_pat: "*.gitignore"
@@ -180,17 +194,3 @@ users:
absent_users:
- donald
- bad_guy
groups:
badguys:
absent: True
niceguys:
gid: 4242
system: False
addusers: root
delusers: toor
ssl-cert:
system: True
members:
- www-data
- openldap