From f37889e4088bba72745a291ed940c804e412738e Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Wed, 16 Jun 2010 00:19:20 -0400 Subject: [PATCH] Add configuration and information on how not to send email by default. --- scripts/pkgdb_bulk_comaint/comaint.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/pkgdb_bulk_comaint/comaint.py b/scripts/pkgdb_bulk_comaint/comaint.py index e52fb4c..1ff8e98 100644 --- a/scripts/pkgdb_bulk_comaint/comaint.py +++ b/scripts/pkgdb_bulk_comaint/comaint.py @@ -10,7 +10,15 @@ if __name__ == '__main__': username = sys.stdin.readline().strip() password = getpass.getpass('Password: ') - pkgdb = PackageDB(username=username, password=password) + # Note: in order not to send email: + # ssh bapp01 + # /usr/sbin/puppetd --disable + # edit /etc/pkgdb.cfg and set: + # mail.on = False + # /etc/init.d/httpd restart + # + # Then run this script on a host that can talk to bapp01. + pkgdb = PackageDB('http://bapp01/pkgdb/', username=username, password=password) collections = dict([(c[0]['id'], c[0]) for c in pkgdb.get_collection_list(eol=False)]) pkgs = pkgdb.user_packages('mmaslano', acls=['owner', 'approveacls']).pkgs