Re: PS1 configuration
On Thu, Apr 07, 2016 at 10:28:54AM -0600, Kevin Fenzi wrote: > On Wed, 6 Apr 2016 17:39:27 -0400 > Zach Villerswrote: > > > Hello infra, > > > > First apologies for blowing up your inbox with ansible commits. > > > > Second - if you have a chance, please log into these machines before > > thursday's meeting and look at your prompt. You should see a red > > "[PROD]" before your normal prompt on the production machine and a > > regular color "[STG]" on the stage machine. If you dont, would you > > kindly let me know what shell you are using and what terminal > > emulator? > > > > badges-backend01.phx2.fp.o > > > > and > > > > badges-backend01.stg.fp.o > > Yeah, it's working here. I am not sure I like the red for PROD. > > I guess its an indicator to be carefull, but we are anyhow, and red > seems overkill. Perhaps yellow would be better? and blue or green for > stg? That sounds good to me too. Nice work! signature.asc Description: PGP signature ___ infrastructure mailing list infrastructure@lists.fedoraproject.org http://lists.fedoraproject.org/admin/lists/infrastructure@lists.fedoraproject.org
[PATCH] Refactor (again) the code deploying zodbot/ursabot
From: Michael SchererSince there is the same code between staging and production, except for the bot name, using a variable permit to avoid duplication. (this time, it work) --- roles/supybot/tasks/main.yml | 36 roles/supybot/vars/main.yml | 3 +++ 2 files changed, 11 insertions(+), 28 deletions(-) create mode 100644 roles/supybot/vars/main.yml diff --git a/roles/supybot/tasks/main.yml b/roles/supybot/tasks/main.yml index 59cc5ea..4821c77 100644 --- a/roles/supybot/tasks/main.yml +++ b/roles/supybot/tasks/main.yml @@ -10,34 +10,23 @@ - packagedb-cli tags: supybot +- set_fact: botname={{ botnames[env] }} + - name: creating zodbot log dir file: path={{ item }} state=directory owner=daemon with_items: - - /var/lib/zodbot - - /var/lib/zodbot/conf - - /var/lib/zodbot/data - - /var/lib/zodbot/logs + - /var/lib/{{ botname }} + - /var/lib/{{ botname }}/conf + - /var/lib/{{ botname }}/data + - /var/lib/{{ botname }}/logs - /srv/web - /srv/web/meetbot - when: env != "staging" tags: supybot - name: create teams directory file: path=/srv/web/meetbot/teams state=directory owner=apache group=apache mode=0755 tags: supybot -- name: creating usrabot log dir - file: path={{ item }} state=directory owner=daemon - with_items: - - /var/lib/ursabot - - /var/lib/ursabot/conf - - /var/lib/ursabot/data - - /var/lib/ursabot/logs - - /srv/web - - /srv/web/meetbot - when: env == "staging" - tags: supybot - - name: setup meetings_by_team script copy: src=meetings_by_team.sh dest=/usr/local/bin/meetings_by_team.sh mode=755 tags: supybot @@ -70,18 +59,9 @@ - meetbot - supybot -- name: setup cron job to start zodbot/ursabot on boot - cron: name=zodbot special_time=reboot job='cd /srv/web/meetbot; supybot -d /var/lib/zodbot/conf/zodbot.conf' user=daemon - tags: - - config - - meetbot - - supybot - when: env != "staging" - -- name: setup cron job to start zodbot/ursabot on boot - cron: name=ursabot special_time=reboot job='cd /srv/web/meetbot; supybot -d /var/lib/ursabot/conf/ursabot.conf' user=daemon +- name: setup cron job to start {{ botname }}/ursabot on boot + cron: name={{ botname }} special_time=reboot job='cd /srv/web/meetbot; supybot -d /var/lib/{{ botname }}/conf/{{ botname }}.conf' user=daemon tags: - config - meetbot - supybot - when: env == "staging" diff --git a/roles/supybot/vars/main.yml b/roles/supybot/vars/main.yml new file mode 100644 index 000..6e3df99 --- /dev/null +++ b/roles/supybot/vars/main.yml @@ -0,0 +1,3 @@ +botnames: + staging: ursabot + production: zodbot -- 1.8.3.1 ___ infrastructure mailing list infrastructure@lists.fedoraproject.org http://lists.fedoraproject.org/admin/lists/infrastructure@lists.fedoraproject.org
Re: PS1 configuration
On Wed, 6 Apr 2016 17:39:27 -0400 Zach Villerswrote: > Hello infra, > > First apologies for blowing up your inbox with ansible commits. > > Second - if you have a chance, please log into these machines before > thursday's meeting and look at your prompt. You should see a red > "[PROD]" before your normal prompt on the production machine and a > regular color "[STG]" on the stage machine. If you dont, would you > kindly let me know what shell you are using and what terminal > emulator? > > badges-backend01.phx2.fp.o > > and > > badges-backend01.stg.fp.o Yeah, it's working here. I am not sure I like the red for PROD. I guess its an indicator to be carefull, but we are anyhow, and red seems overkill. Perhaps yellow would be better? and blue or green for stg? kevin pgp75aq4tC9yS.pgp Description: OpenPGP digital signature ___ infrastructure mailing list infrastructure@lists.fedoraproject.org http://lists.fedoraproject.org/admin/lists/infrastructure@lists.fedoraproject.org
Re: Support levels and RFR adjustments
On Wed, 6 Apr 2016 12:41:09 +0200 Pierre-Yves Chibonwrote: > > The devel/devel-announce lists? Or would we have a better place to > get this feedback? I think that might be a good start yeah. But we first need to write up a wiki page/doc to bring to them kevin pgpqINpounGTJ.pgp Description: OpenPGP digital signature ___ infrastructure mailing list infrastructure@lists.fedoraproject.org http://lists.fedoraproject.org/admin/lists/infrastructure@lists.fedoraproject.org
Re: [PATCH] Remove old unused handlers in the current codebase
Applied. Thanks, kevin pgpTJFOvS7XGq.pgp Description: OpenPGP digital signature ___ infrastructure mailing list infrastructure@lists.fedoraproject.org http://lists.fedoraproject.org/admin/lists/infrastructure@lists.fedoraproject.org
[PATCH] Remove handlers that do not correspond to any existing playbook
From: Michael Scherer--- handlers/restart_services.yml | 21 - 1 file changed, 21 deletions(-) diff --git a/handlers/restart_services.yml b/handlers/restart_services.yml index 75a805b..67f48ef 100644 --- a/handlers/restart_services.yml +++ b/handlers/restart_services.yml @@ -2,9 +2,6 @@ # Handlers for restarting services # -- name: restart auditd - action: service name=auditd state=restarted - - name: restart apache command: /usr/local/bin/conditional-restart.sh httpd httpd @@ -60,21 +57,9 @@ - name: restart libvirtd action: service name=libvirtd state=restarted -- name: restart mailman - action: service name=mailman state=restarted - - name: restart named action: service name=named state=restarted -- name: restart nfs - action: service name=nfs state=restarted - -- name: restart nfslock - action: service name=nfslock state=restarted - -- name: restart ntpd - action: service name=ntpd state=restarted - - name: restart openvpn (Fedora) when: ansible_distribution == "Fedora" action: service name=openvpn@openvpn state=restarted @@ -99,12 +84,6 @@ - name: restart postfix action: service name=postfix state=restarted -- name: restart rpcbind - action: service name=rpcbind state=restarted - -- name: restart rpcidmapd - action: service name=rpcidmapd state=restarted - - name: restart xinetd action: service name=xinetd state=restarted -- 1.8.3.1 ___ infrastructure mailing list infrastructure@lists.fedoraproject.org http://lists.fedoraproject.org/admin/lists/infrastructure@lists.fedoraproject.org
Re: Can not download repomd.xml for rawhide-source repo.
> This should be fixed now. I went in and manually fixed it to use the > right directory. Thanks, Kevin. I could check that it worked well for "metalink" setting! $ sudo vi /etc/yum.repos.d/fedora-rawhide.repo [rawhide-source] ... metalink=https://mirrors.fedoraproject.org/metalink?repo=rawhide-source=$basearch ... $ dnf repoquery --enablerepo=rawhide-source --arch src --whatrequires 'rubygem(acts_as_list)' RPM Fusion for Fedora 23 - Free - Test Updates 2.1 MB/s | 332 kB 00:00 Fedora - Rawhide - Source8.7 MB/s | 6.3 MB 00:00 Adobe Systems Incorporated 4.2 kB/s | 1.8 kB 00:00 Fedora 23 - x86_64 - Updates 7.1 MB/s | 21 MB 00:02 RPM Fusion for Fedora 23 - Nonfree - Test Updates625 kB/s | 104 kB 00:00 Last metadata expiration check: 0:00:00 ago on Thu Apr 7 11:06:58 2016. Best, Jun - Original Message - > From: "Kevin Fenzi"> To: infrastructure@lists.fedoraproject.org > Sent: Friday, April 1, 2016 8:45:01 PM > Subject: Re: Can not download repomd.xml for rawhide-source repo. > > On Wed, 30 Mar 2016 10:23:41 +0200 > Adrian Reber wrote: > > > Looking at the metalink it only lists a few mirrors which have an > > empty source directory at the wrong location: > > > > development/rawhide/source/SRPMS/repodata > > > > I am not 100% sure were data have been moved but I think it is now at: > > > > development/rawhide/Everything/source/tree/repodata > > > > Somebody did some database changes for other parts of that move and > > probably the rawhide-source repository still points at the old/wrong > > location in MirrorManager. > > This should be fixed now. I went in and manually fixed it to use the > right directory. > > kevin > > ___ > infrastructure mailing list > infrastructure@lists.fedoraproject.org > http://lists.fedoraproject.org/admin/lists/infrastructure@lists.fedoraproject.org > ___ infrastructure mailing list infrastructure@lists.fedoraproject.org http://lists.fedoraproject.org/admin/lists/infrastructure@lists.fedoraproject.org
Meeting Agenda Item: Introduction Suraj Narwade
Hello World IRC handle: snarwade skills: basics of linux system administration, shell scripting, python programming, openstack administration, jenkins and I have redhat certifications for system administrator, openstack administrator and engineer As I am newbie to it, I want to know this things in more detail and contribute my knowledge to opensource world. Thanks, Suraj Narwade ___ infrastructure mailing list infrastructure@lists.fedoraproject.org http://lists.fedoraproject.org/admin/lists/infrastructure@lists.fedoraproject.org
Meeting Agenda Item: Introduction Suraj Narwade
Hello World ___ infrastructure mailing list infrastructure@lists.fedoraproject.org http://lists.fedoraproject.org/admin/lists/infrastructure@lists.fedoraproject.org