Commit Graph

374 Commits

Author SHA1 Message Date
Imran Iqbal
60ee61dd66 ci(travis): update salt-lint config for v0.0.10 [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/82
2019-10-23 17:34:28 +01:00
Imran Iqbal
7c55ef0c0d docs(contributing): remove to use org-level file instead [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/70
2019-10-14 12:29:41 +01:00
Imran Iqbal
2a887654fc
docs(readme): update link to CONTRIBUTING [skip ci] 2019-10-14 11:39:42 +01:00
semantic-release-bot
fc6cb567a9 chore(release): 0.48.2 [skip ci]
## [0.48.2](https://github.com/saltstack-formulas/users-formula/compare/v0.48.1...v0.48.2) (2019-10-11)

### Bug Fixes

* **rubocop:** add fixes using `rubocop --safe-auto-correct` ([](https://github.com/saltstack-formulas/users-formula/commit/13dd7f9))

### Continuous Integration

* merge travis matrix, add `salt-lint` & `rubocop` to `lint` job ([](https://github.com/saltstack-formulas/users-formula/commit/99136b5))
* **travis:** merge `rubocop` linter into main `lint` job ([](https://github.com/saltstack-formulas/users-formula/commit/96999c2))
2019-10-11 20:26:19 +00:00
Imran Iqbal
96999c2d63 ci(travis): merge rubocop linter into main lint job
* Semi-automated using https://github.com/myii/ssf-formula/pull/65
2019-10-11 21:07:17 +01:00
Imran Iqbal
13dd7f9517
fix(rubocop): add fixes using rubocop --safe-auto-correct 2019-10-11 21:02:46 +01:00
Imran Iqbal
cc30c7b3fe chore(issues): remove issues templates to use org-level templates [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/61
2019-10-10 15:26:50 +01:00
semantic-release-bot
1bc2ea9045 chore(release): 0.48.1 [skip ci]
## [0.48.1](https://github.com/saltstack-formulas/users-formula/compare/v0.48.0...v0.48.1) (2019-10-10)

### Bug Fixes

* **googleauth.sls:** fix `salt-lint` errors ([](https://github.com/saltstack-formulas/users-formula/commit/bb27b94))
* **init.sls:** fix `salt-lint` errors ([](https://github.com/saltstack-formulas/users-formula/commit/4cec0ef))
* **sudo.sls:** fix `salt-lint` errors ([](https://github.com/saltstack-formulas/users-formula/commit/560f5e1))

### Continuous Integration

* **kitchen:** change `log_level` to `debug` instead of `info` ([](https://github.com/saltstack-formulas/users-formula/commit/1726e0f))
* **kitchen:** install required packages to bootstrapped `opensuse` [skip ci] ([](https://github.com/saltstack-formulas/users-formula/commit/0ed662d))
* **kitchen:** use bootstrapped `opensuse` images until `2019.2.2` [skip ci] ([](https://github.com/saltstack-formulas/users-formula/commit/f2e1b66))
* **platform:** add `arch-base-latest` (commented out for now) [skip ci] ([](https://github.com/saltstack-formulas/users-formula/commit/1790bae))
* **yamllint:** add rule `empty-values` & use new `yaml-files` setting ([](https://github.com/saltstack-formulas/users-formula/commit/af2d2c0))
* merge travis matrix, add `salt-lint` & `rubocop` to `lint` job ([](https://github.com/saltstack-formulas/users-formula/commit/f17d156))
* use `dist: bionic` & apply `opensuse-leap-15` SCP error workaround ([](https://github.com/saltstack-formulas/users-formula/commit/4d3228b))
2019-10-10 05:01:47 +00:00
Imran Iqbal
5e6846b173
Merge pull request #212 from myii/ci/merge-matrix-and-add-salt-lint-and-rubocop
ci: merge travis matrix, add `salt-lint` & `rubocop` to `lint` job
2019-10-09 23:53:21 +01:00
Imran Iqbal
f17d156e6e
ci: merge travis matrix, add salt-lint & rubocop to lint job
* Semi-automated using https://github.com/myii/ssf-formula/pull/60
2019-10-09 22:27:59 +01:00
Imran Iqbal
560f5e10d9
fix(sudo.sls): fix salt-lint errors
```bash
Examining users/sudo.sls of type state
[201] Trailing whitespace
users/sudo.sls:13
      - file: {{ users.sudoers_dir }}

[201] Trailing whitespace
users/sudo.sls:22
        - name: {{ users.sudoers_file }}
```
2019-10-09 22:27:59 +01:00
Imran Iqbal
4cec0ef4cc
fix(init.sls): fix salt-lint errors
```bash
Examining users/init.sls of type state
[206] Jinja variables should have spaces before and after: {{ var_name }}
users/init.sls:176
    - expire: {{ (user['expire'] / 86400) | int}}

[206] Jinja variables should have spaces before and after: {{ var_name }}
users/init.sls:202
      - {{optional_group}}
```
2019-10-09 22:27:59 +01:00
Imran Iqbal
bb27b940ea
fix(googleauth.sls): fix salt-lint errors
```bash
Examining users/googleauth.sls of type state
[201] Trailing whitespace
users/googleauth.sls:9
      - file: {{ users.googleauth_dir }}

[204] Lines should be no longer that 160 chars
users/googleauth.sls:26
    - repl: "auth       [success=done new_authtok_reqd=done default=die]   pam_google_authenticator.so user=root secret={{ users.googleauth_dir }}/${USER}_{{ svc }} echo_verification_code\n@include common-auth"
```
2019-10-09 22:27:59 +01:00
Imran Iqbal
99136b57f6 ci: merge travis matrix, add salt-lint & rubocop to lint job
* Automated using https://github.com/myii/ssf-formula/pull/60
2019-10-08 16:37:31 +01:00
Imran Iqbal
23b6725e4f chore(yamllint): update ignored paths and add octal-values [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/59
2019-10-07 19:32:25 +01:00
Imran Iqbal
431b02030a chore(issues): update Bug report & Feature request templates [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/58
2019-10-07 15:26:37 +01:00
Imran Iqbal
0ed662d16b ci(kitchen): install required packages to bootstrapped opensuse [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/53
2019-10-02 00:07:58 +01:00
Imran Iqbal
f2e1b66be7 ci(kitchen): use bootstrapped opensuse images until 2019.2.2 [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/52
2019-10-01 21:34:35 +01:00
Imran Iqbal
1790bae6f1 ci(platform): add arch-base-latest (commented out for now) [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/50
2019-10-01 16:20:54 +01:00
Imran Iqbal
8d950a3c38 chore(issues): provide Bug report & Feature request templates [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/48
2019-09-30 15:58:57 +01:00
Imran Iqbal
1726e0f0f1 ci(kitchen): change log_level to debug instead of info
* Automated using https://github.com/myii/ssf-formula/pull/41
2019-09-23 17:00:27 +01:00
Niels Abspoel
ce8e2a0f92
Merge pull request #211 from myii/chore/standardise-structure
ci(yamllint): add rule `empty-values` & use new `yaml-files` setting
2019-09-12 18:11:00 +02:00
Imran Iqbal
af2d2c0453 ci(yamllint): add rule empty-values & use new yaml-files setting
* Automated using https://github.com/myii/ssf-formula/pull/27
2019-09-10 05:54:25 +01:00
Niels Abspoel
531a684e5c
Merge pull request #210 from myii/chore/standardise-structure
ci: use `dist: bionic` & apply `opensuse-leap-15` SCP error workaround
2019-09-08 21:44:07 +02:00
Imran Iqbal
4d3228b24a ci: use dist: bionic & apply opensuse-leap-15 SCP error workaround
* Automated using https://github.com/myii/ssf-formula/pull/22
2019-09-07 03:37:22 +01:00
semantic-release-bot
f47dbf2c8d chore(release): 0.48.0 [skip ci]
# [0.48.0](https://github.com/saltstack-formulas/users-formula/compare/v0.47.0...v0.48.0) (2019-08-17)

### Features

* **yamllint:** include for this repo and apply rules throughout ([fa6210d](https://github.com/saltstack-formulas/users-formula/commit/fa6210d))
2019-08-17 07:56:47 +00:00
Niels Abspoel
1b354fa788
Merge pull request #208 from myii/chore/standardise-structure
feat(yamllint): include for this repo and apply rules throughout
2019-08-17 09:47:13 +02:00
Imran Iqbal
fa6210dc5b
feat(yamllint): include for this repo and apply rules throughout
* Semi-automated using `ssf-formula` (v0.5.0)
* Fix errors shown below:

```bash
users-formula$ $(grep "\- yamllint" .travis.yml | sed -e "s:^\s\+-\s\(.*\):\1:")
./users/defaults.yaml
  4:1       warning  missing document start "---"  (document-start)
  5:20      warning  truthy value should be one of [false, true]  (truthy)
  8:21      warning  truthy value should be one of [false, true]  (truthy)
  9:15      warning  truthy value should be one of [false, true]  (truthy)
  10:1      error    too many blank lines (1 > 0)  (empty-lines)

pillar.example
  5:20      warning  truthy value should be one of [false, true]  (truthy)
  14:13     warning  truthy value should be one of [false, true]  (truthy)
  16:13     warning  truthy value should be one of [false, true]  (truthy)
  19:13     warning  truthy value should be one of [false, true]  (truthy)
  23:13     warning  truthy value should be one of [false, true]  (truthy)
  25:5      error    wrong indentation: expected 6 but found 4  (indentation)
  37:23     warning  truthy value should be one of [false, true]  (truthy)
  40:21     warning  truthy value should be one of [false, true]  (truthy)
  41:20     warning  truthy value should be one of [false, true]  (truthy)
  42:13     warning  truthy value should be one of [false, true]  (truthy)
  47:17     warning  truthy value should be one of [false, true]  (truthy)
  51:19     warning  truthy value should be one of [false, true]  (truthy)
  52:23     warning  truthy value should be one of [false, true]  (truthy)
  53:20     warning  truthy value should be one of [false, true]  (truthy)
  54:21     warning  truthy value should be one of [false, true]  (truthy)
  58:15     warning  truthy value should be one of [false, true]  (truthy)
  59:15     warning  truthy value should be one of [false, true]  (truthy)
  73:18     warning  truthy value should be one of [false, true]  (truthy)
  75:20     warning  truthy value should be one of [false, true]  (truthy)
  90:7      error    duplication of key "privkey" in mapping  (key-duplicates)
  91:7      error    duplication of key "pubkey" in mapping  (key-duplicates)
  117:44    warning  too few spaces before comment  (comments)
  125:27    warning  truthy value should be one of [false, true]  (truthy)
  153:17    warning  truthy value should be one of [false, true]  (truthy)
  167:13    warning  truthy value should be one of [false, true]  (truthy)
  171:16    warning  truthy value should be one of [false, true]  (truthy)
  172:89    error    line too long (102 > 88 characters)  (line-length)
  177:89    error    line too long (102 > 88 characters)  (line-length)
  178:89    error    line too long (100 > 88 characters)  (line-length)
  181:89    error    line too long (94 > 88 characters)  (line-length)
  188:13    warning  truthy value should be one of [false, true]  (truthy)
  189:12    warning  truthy value should be one of [false, true]  (truthy)
  190:12    warning  truthy value should be one of [false, true]  (truthy)

test/salt/pillar/default.sls
  25:89     error    line too long (91 > 88 characters)  (line-length)
  175:89    error    line too long (102 > 88 characters)  (line-length)
  180:89    error    line too long (102 > 88 characters)  (line-length)
  181:89    error    line too long (100 > 88 characters)  (line-length)
  184:89    error    line too long (94 > 88 characters)  (line-length)
```
2019-08-16 20:12:03 +01:00
semantic-release-bot
c5a5e3e484 chore(release): 0.47.0 [skip ci]
# [0.47.0](https://github.com/saltstack-formulas/users-formula/compare/v0.46.1...v0.47.0) (2019-08-07)

### Features

* **semantic-release:** implement for this formula ([3bcdc90](https://github.com/saltstack-formulas/users-formula/commit/3bcdc90)), closes [#203](https://github.com/saltstack-formulas/users-formula/issues/203)
2019-08-07 15:23:26 +00:00
N
abe4510f9f
Merge pull request #207 from myii/feat/semantic-release
feat(semantic-release): implement for this formula
2019-08-07 17:14:45 +02:00
Imran Iqbal
3bcdc902dc
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
2019-08-07 15:20:26 +01:00
Niels Abspoel
5517d954e8
Merge pull request #204 from myii/fix/replace-gid_from_name
fix(init): replace `gid_from_name` (deprecated in `develop`)
2019-08-01 20:38:15 +02:00
Imran Iqbal
83ffcb4bf7
Merge pull request #205 from sevrob/master
added dir_mode logic for users.user_files
2019-08-01 07:29:14 +01:00
Sevrin Robstad
18c0447754 added comment about dir_sync not working on windows 2019-07-31 12:26:29 +02:00
Sevrin Robstad
7cf7769a2d adde dir_mode logic for users.files 2019-07-30 12:39:48 +02:00
Imran Iqbal
923b4600f1
fix(init): replace gid_from_name (deprecated in develop)
* Close #198
* All details in that issue
* Solution based upon:
  - https://github.com/saltstack-formulas/vault-formula/pull/35#issuecomment-509854411
2019-07-24 08:22:31 +01:00
Arthur Lutz
8d48adb3a2 [users/init] use createhome from defaults (#202)
This fixes a change introduced by 634deac where createhome was changed from True to False (by default).

This change honnor the default "global default" "users.createhome" from defaults.sls
2019-07-10 15:47:18 +02:00
N
7884fe6b29
Merge pull request #199 from noelmcloughlin/macos
fix(macos): ensure correct prime_group value
2019-06-23 17:04:17 +01:00
N
69c65174f1
Merge branch 'master' of https://github.com/saltstack-formulas/users-formula into macos 2019-06-19 08:23:30 +01:00
N
d80338d4a0
Merge pull request #142 from IMBArator/policykit-settings
make AdminIdentity configureable per user
2019-06-18 15:59:54 +01:00
N
18c5d9e205
Merge branch 'master' into policykit-settings 2019-06-18 15:53:07 +01:00
N
39b6d3c3c5
fix(macos): ensure correct group 2019-06-11 22:14:45 +01:00
Niels Abspoel
d4f8cf955d
Merge pull request #194 from ze42/groups_members
Groups members
2019-05-03 23:23:07 +02:00
Niels Abspoel
bdf05fc5f6
Merge pull request #197 from chenmen/pillar.example
add example of groups init into pillar.example
2019-05-03 23:22:15 +02:00
Meng Chen
ba61e9b7f1 add example of groups init 2019-04-29 14:39:19 +08:00
Adrien "ze" Urban
c128b1ea28 gid: default to "null"
using `|json` would let the state get an error if gid is a string, as it would
not be converted.

Using directly the `None` yaml value, and letting numbers as string be
converted by yaml parser.
2019-03-07 14:38:54 +01:00
Adrien "ze" Urban
def8f53932 group: add support for members
members, addusers, delusers, and in pillar examples
2019-03-07 12:03:30 +01:00
Adrien "ze" Urban
b69bef3cd1 group: add pillar example 2019-03-07 11:55:56 +01:00
Adrien "ze" Urban
7845013a39 groups: support absent like for users.
Also remove warning for passing unknown arguments on group.absent
2019-03-07 11:53:59 +01:00
Niels Abspoel
b8c6844e10
Merge pull request #193 from reschl/master
added OpenBSD data
2019-02-22 23:48:37 +01:00