Browse Source

add muttrc and syscom auxiliary groups

merge-requests/4/head
Max Erenberg 1 year ago
parent
commit
394d7f535f
  1. 32
      auth1/ldap/data.ldif.j2
  2. 4
      fs00/main.yml
  3. 29
      fs00/templates/muttrc.j2

32
auth1/ldap/data.ldif.j2

@ -46,6 +46,38 @@ sudoHost: ALL
sudoCommand: ALL
sudoRunAsUser: ALL
dn: cn=adm,ou=Group,{{ ldap_base }}
objectClass: top
objectClass: group
objectClass: posixGroup
gidNumber: 4
cn: adm
uniqueMember: uid=ctdalek,ou=People,{{ ldap_base }}
dn: cn=office,ou=Group,{{ ldap_base }}
objectClass: top
objectClass: group
objectClass: posixGroup
gidNumber: 10003
cn: office
uniqueMember: uid=ctdalek,ou=People,{{ ldap_base }}
dn: cn=src,ou=Group,{{ ldap_base }}
objectClass: top
objectClass: group
objectClass: posixGroup
gidNumber: 40
cn: src
uniqueMember: uid=ctdalek,ou=People,{{ ldap_base }}
dn: cn=staff,ou=Group,{{ ldap_base }}
objectClass: top
objectClass: group
objectClass: posixGroup
gidNumber: 50
cn: staff
uniqueMember: uid=ctdalek,ou=People,{{ ldap_base }}
dn: uid=ctdalek,ou=People,{{ ldap_base }}
cn: Calum Dalek
userPassword: {SASL}ctdalek@{{ krb_realm }}

4
fs00/main.yml

@ -67,6 +67,10 @@
dest: /users/skel/
with_fileglob:
- "/etc/skel/.*"
- name: add muttrc to skel directory
template:
src: templates/muttrc.j2
dest: /users/skel/.muttrc
- meta: flush_handlers
- name: create home directories for users
shell:

29
fs00/templates/muttrc.j2

@ -0,0 +1,29 @@
set my_pass = "krb5"
set my_username = `getent passwd $(id -u) | cut -d: -f1`
# SMTP
set realname = "`getent passwd $(id -u) | cut -d: -f5`"
set from = "$my_username@{{ base_domain }}"
set smtp_url = "smtp://$my_username@mail.{{ base_domain }}:587"
set smtp_pass = "$my_pass"
unset record
# IMAP
set folder = "imap://mail.{{ base_domain }}"
set imap_user = $my_username
set imap_pass = "$my_pass"
set imap_authenticators = "plain"
set spoolfile = "+Inbox"
set sort = reverse-date-received
# TLS
set ssl_starttls = no
set ssl_force_tls = no
# Misc
bind index G imap-fetch-mail
set pager_stop=yes
bind pager <up> previous-line
bind pager <down> next-line
set mail_check=60
set imap_keepalive=900
Loading…
Cancel
Save