diff --git a/GIDs b/GIDs --- a/GIDs +++ b/GIDs @@ -4,6 +4,7 @@ 3001 ops #3002 is intentionally left unassigned 3003 deployment +3004 mediawiki 9001 salt 9002 deploy 9003 web diff --git a/UIDs b/UIDs --- a/UIDs +++ b/UIDs @@ -3,6 +3,7 @@ 832 chaton 833 viper 834 tc2 +3004 mediawiki 9001 salt 9002 deploy 8900 zr diff --git a/roles/saas-mediawiki/account/init.sls b/roles/saas-mediawiki/account/init.sls new file mode 100644 --- /dev/null +++ b/roles/saas-mediawiki/account/init.sls @@ -0,0 +1,25 @@ +# ------------------------------------------------------------- +# Salt — MediaWiki farm +# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +# Project: Nasqueron +# Created: 2018-03-16 +# License: Trivial work, not eligible to copyright +# ------------------------------------------------------------- + +# ------------------------------------------------------------- +# Service account +# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +mediawiki_group: + group.present: + - name: mediawiki + - gid: 3004 + - system: True + +mediawiki_account: + user.present: + - name: mediawiki + - fullname: MediaWiki SaaS + - uid: 3004 + - gid: 3004 + - home: /var/run/mediawiki diff --git a/roles/saas-mediawiki/init.sls b/roles/saas-mediawiki/init.sls new file mode 100644 --- /dev/null +++ b/roles/saas-mediawiki/init.sls @@ -0,0 +1,10 @@ +# ------------------------------------------------------------- +# Salt — MediaWiki farm +# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +# Project: Nasqueron +# Created: 2018-03-16 +# License: Trivial work, not eligible to copyright +# ------------------------------------------------------------- + +include: + - .account