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'
And from MAAS it can be done by adding the following to /etc/maas/ preseeds/ curtin_ userdata
late_commands: d/16-mongohush. conf' d/16-mongohush. conf' d/16-mongohush. conf' d/16-mongohush. conf'
mongo_01: curtin in-target -- sh -c '/bin/echo :msg, contains, \"authenticate db:\" \~ >> /etc/rsyslog.
mongo_02: curtin in-target -- sh -c '/bin/echo :msg, contains, \"warning:\ No such role, \" \~ >> /etc/rsyslog.
mongo_03: curtin in-target -- sh -c '/bin/echo :msg, contains, \"command juju.\$cmd command:\" \~ >> /etc/rsyslog.
mongo_04: curtin in-target -- sh -c '/bin/echo :msg, contains, \"command presence.\$cmd command:\" \~ >> /etc/rsyslog.