Commit Graph

392 Commits

Author SHA1 Message Date
Imran Iqbal
e09c822165 ci(travis): run shellcheck during lint job [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/106
2019-11-27 20:58:37 +00:00
Imran Iqbal
9a983a4c2a ci(travis): opt-in to dpl v2 to complete build config validation [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/100
2019-11-20 16:32:40 +00:00
Imran Iqbal
9f766728d4 ci(travis): apply changes from build config validation [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/98
2019-11-16 20:05:26 +00:00
Imran Iqbal
0ddb90e6b5 ci(travis): use build config validation (beta) [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/97
2019-11-13 16:47:37 +00:00
semantic-release-bot
3d58323118 chore(release): 0.48.4 [skip ci]
## [0.48.4](https://github.com/saltstack-formulas/users-formula/compare/v0.48.3...v0.48.4) (2019-11-08)

### Bug Fixes

* **vimrc:** ensure `vimrc` state runs ([a1ef7e5](a1ef7e57d9))

### Continuous Integration

* **kitchen:** use `develop` image until `master` is ready (`amazonlinux`) [skip ci] ([852dff2](852dff2aac))
* **kitchen+travis+inspec:** add `vimrc` suite ([a263a62](a263a62e75))

### Tests

* **inspec:** add test to check `.vimrc` file is generated properly ([569e927](569e9276db))
* **pillar:** add test pillar to generate `.vimrc` file ([86144be](86144befb9))
2019-11-08 19:08:29 +00:00
Niels Abspoel
1a96921e89
Merge pull request #216 from myii/add-test-vimrc-generation
fix(vimrc): ensure `vimrc` state runs
2019-11-08 19:53:26 +01:00
Imran Iqbal
852dff2aac ci(kitchen): use develop image until master is ready (amazonlinux) [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/93
2019-11-03 11:36:08 +00:00
semantic-release-bot
0e5829bc10 chore(release): 0.48.3 [skip ci]
## [0.48.3](https://github.com/saltstack-formulas/users-formula/compare/v0.48.2...v0.48.3) (2019-11-02)

### Bug Fixes

* **pillars:** ensure `addusers` & `delusers` are lists ([b31c592](b31c592147))
* **release.config.js:** use full commit hash in commit link [skip ci] ([8df4d39](8df4d39060))

### Continuous Integration

* **kitchen:** use `debian-10-master-py3` instead of `develop` [skip ci] ([9ee7636](9ee7636477))
* **kitchen+travis:** upgrade matrix after `2019.2.2` release [skip ci] ([1d9a5ef](1d9a5ef5be))
* **travis:** update `salt-lint` config for `v0.0.10` [skip ci] ([60ee61d](60ee61dd66))

### Documentation

* **contributing:** remove to use org-level file instead [skip ci] ([7c55ef0](7c55ef0c0d))
* **readme:** update link to `CONTRIBUTING` [skip ci] ([2a88765](2a887654fc))

### Performance Improvements

* **travis:** improve `salt-lint` invocation [skip ci] ([b45914e](b45914e063))
2019-11-02 09:48:30 +00:00
Niels Abspoel
48ab7270f7
Merge pull request #215 from myii/fix/ensure-addusers-and-delusers-are-lists
fix(pillars): ensure `addusers` & `delusers` are lists
2019-11-02 10:35:41 +01:00
Imran Iqbal
b31c592147
fix(pillars): ensure addusers & delusers are lists 2019-11-02 09:14:51 +00:00
Felipe Zipitria
86144befb9
test(pillar): add test pillar to generate .vimrc file 2019-11-02 08:52:09 +00:00
Felipe Zipitria
569e9276db
test(inspec): add test to check .vimrc file is generated properly 2019-11-02 08:52:09 +00:00
Imran Iqbal
a263a62e75
ci(kitchen+travis+inspec): add vimrc suite
* Automated using https://github.com/myii/ssf-formula/pull/91
2019-11-02 08:52:09 +00:00
Imran Iqbal
a1ef7e57d9
fix(vimrc): ensure vimrc state runs 2019-11-02 08:52:09 +00:00
Imran Iqbal
b45914e063 perf(travis): improve salt-lint invocation [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/90
2019-11-02 08:38:02 +00:00
Imran Iqbal
8df4d39060 fix(release.config.js): use full commit hash in commit link [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/89
2019-10-31 10:30:27 +00:00
Imran Iqbal
1d9a5ef5be ci(kitchen+travis): upgrade matrix after 2019.2.2 release [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/86
2019-10-30 04:48:35 +00:00
Imran Iqbal
9ee7636477 ci(kitchen): use debian-10-master-py3 instead of develop [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/84
2019-10-24 18:10:50 +01:00
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