Using methods to access in-scope variables from puppet templates has
been deprecated since puppet 3.2.0[1] and causes warnings to be emitted
in logs. In puppet 4 this functionality was removed entirely. This
patch updates the accessbot.confg template to use instance variables as
recommended in the puppet documentation[2].
[1] https://projects.puppetlabs.com/issues/19058
[2] https://docs.puppetlabs.com/guides/templating.html#referencing-variables
Change-Id: I7af52e32322333879eef946443620e09a726dd57
Run it whenever there is a change to the YAML channel config.
The script will ensure everyone listed in global has those perms
and anyone else found with access on a channel will be left as-is
except that their access will be limited to the relevant mask.
Move it and the previous change to add a permission checking
script into a new module, 'accessbot'.
Support SSL in both scripts.
Add a 1 second sleep in the check script to avoid flood protection.
Add all known channels to the channel config.
Closes-Bug: 1190296
Change-Id: I5072cb56ae83a70f4fa955362b8db909b2956d70