File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change
1
+ - name : restart persistent-tokens
2
+ systemd :
3
+ daemon_reload : yes
4
+ name : persistent-tokens.service
5
+ enabled : yes
6
+ state : restarted
Original file line number Diff line number Diff line change 6
6
- remctl-client
7
7
- python-ldap
8
8
- python-sqlalchemy
9
- # TODO: Build and install admof
9
+ - kstart
10
10
- name : Install remctl-pony
11
11
command : git clone https://github.com/mit-scripts/sql-remctl.git /srv/remctl-pony
12
12
args :
42
42
creates : /srv/accountadm/admof
43
43
become : yes
44
44
become_user : scripts-build
45
+ - name : Install systemd unit for fetching tokens
46
+ copy :
47
+ dest : /etc/systemd/system/persistent-tokens.service
48
+ content : |
49
+ [Unit]
50
+ Description=Persistent tokens for remctl-pony
51
+ After=network-online.target
52
+ ConditionPathExists=/etc/daemon.keytab
53
+ [Service]
54
+ ExecStart=/usr/bin/k5start -f /etc/daemon.keytab -u daemon/sql.mit.edu -t -K 15m -l6h
55
+ [Install]
56
+ WantedBy=multi-user.target
57
+ notify : restart persistent-tokens
You can’t perform that action at this time.
0 commit comments