瀏覽代碼

google auth example pillar config add; forgotten gauth state file add

tags/v0.45.0
Bohdan Kmit 10 年之前
父節點
當前提交
c3b5b87fb2
共有 2 個檔案被更改,包括 27 行新增0 行删除
  1. +12
    -0
      pillar.example
  2. +15
    -0
      users/googleauth.sls

+ 12
- 0
pillar.example 查看文件

@@ -28,6 +28,18 @@ users:
- PUBLICKEY
ssh_auth.absent:
- PUBLICKEY_TO_BE_REMOVED
google_auth:
ssh: |
SOMEGAUTHHASHVAL
" RESETTING_TIME_SKEW 46956472+2 46991595-2
" RATE_LIMIT 3 30 1415800560
" DISALLOW_REUSE 47193352
" TOTP_AUTH
11111111
22222222
33333333
44444444
55555555

## Absent user
cuser:

+ 15
- 0
users/googleauth.sls 查看文件

@@ -0,0 +1,15 @@
# vim: sts=2 ts=2 sw=2 et ai
{% from "users/map.jinja" import users with context %}

googleauth-package:
pkg.installed:
- name: {{ users.googleauth_package }}
- require:
- file: {{ users.googleauth_dir }}

{{ users.googleauth_dir }}:
file:
- directory
- user: root
- group: {{ users.root_group }}
- mode: 600

Loading…
取消
儲存