And from MAAS it can be done by adding the following to
/etc/maas/preseeds/curtin_userdata

late_commands:
  mongo_01: curtin in-target -- sh -c '/bin/echo :msg, contains, \"authenticate 
db:\" \~ >> /etc/rsyslog.d/16-mongohush.conf'
  mongo_02: curtin in-target -- sh -c '/bin/echo :msg, contains, \"warning:\ No 
such role, \" \~ >> /etc/rsyslog.d/16-mongohush.conf'
  mongo_03: curtin in-target -- sh -c '/bin/echo :msg, contains, \"command 
juju.\$cmd command:\" \~ >> /etc/rsyslog.d/16-mongohush.conf'
  mongo_04: curtin in-target -- sh -c '/bin/echo :msg, contains, \"command 
presence.\$cmd command:\" \~ >> /etc/rsyslog.d/16-mongohush.conf'

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1349949

Title:
  Juju's mongodb does not need to log every command in syslog

To manage notifications about this bug go to:
https://bugs.launchpad.net/juju-core/+bug/1349949/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to