File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3333 public = true ;
3434 } ;
3535
36- # this should be in ocf utils package somehow
37- security . sudo . extraConfig = ''
38- ALL ALL=(mysql) NOPASSWD: /run/current-system/sw/bin/makemysql-real
39- '' ;
40-
4136 age . secrets . makemysql-conf = {
4237 rekeyFile = ../../secrets/master-keyed/carp/makemysql.conf.age ;
4338 path = "/opt/share/makeservices/makemysql.conf" ;
Original file line number Diff line number Diff line change 7272 ocf . auth . staffOnlySSH = false ;
7373 ocf . ttyd . enable = true ;
7474
75+ # makemysql-real runs as the mysql user for privilege separation
76+ # TODO rewrite the makemysql script and see if theres a better way to do this?
77+ # just carrying over what was done on our puppet host, tsunami
78+ users . users . mysql = {
79+ isSystemUser = true ;
80+ group = "mysql" ;
81+ } ;
82+ users . groups . mysql = { } ;
83+
84+ security . sudo . extraConfig = ''
85+ ALL ALL=(mysql) NOPASSWD: /run/current-system/sw/bin/makemysql-real
86+ '' ;
87+
7588 security . pam . loginLimits = [
7689 {
7790 domain = "*" ;
You can’t perform that action at this time.
0 commit comments