Re: [freeze break request] Mark localhost as a ServerAlias of fp.o on proxies

2015-05-25 Thread Stephen John Smoogen
+1 Thanks for cathcing.

On 24 May 2015 at 20:24, Ricky Elrod codebl...@elrod.me wrote:
 Right now collectd is not logging apache stats for any of our proxies...

 The reason why is this:
 [root@proxy01 conf.d]# curl http://localhost/apache-status?auto;
 !DOCTYPE HTML PUBLIC -//IETF//DTD HTML 2.0//EN
 htmlhead
 title302 Found/title
 /headbody
 h1Found/h1
 pThe document has moved a
 href=https://localhost/apache-status?auto;here/a./p
 hr
 addressApache/2.4.6 (Red Hat Enterprise Linux) Server at localhost
 Port 80/address
 /body/html


 I'd like to apply the following patch to allow localhost to be a
 ServerAlias for a VirtualHost that doesn't force redirects to https
 rather than defaulting to the first VirtualHost alphabetically.

 This has been tested on proxy01.stg and nothing catastrophic seems to
 have happened.

 Patch follows.

 diff --git a/playbooks/include/proxies-websites.yml
 b/playbooks/include/proxies-websites.yml
 index c398a23..febfc83 100644
 --- a/playbooks/include/proxies-websites.yml
 +++ b/playbooks/include/proxies-websites.yml
 @@ -49,7 +49,9 @@
- role: httpd/website
  name: fedoraproject.org
  cert_name: {{wildcard_cert_name}}
 -server_aliases: [stg.fedoraproject.org]
 +server_aliases:
 +- stg.fedoraproject.org
 +- localhost

# This is for all the other domains we own
# that redirect to http://fedoraproject.org


 ___
 infrastructure mailing list
 infrastructure@lists.fedoraproject.org
 https://admin.fedoraproject.org/mailman/listinfo/infrastructure



-- 
Stephen J Smoogen.
___
infrastructure mailing list
infrastructure@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/infrastructure

Re: [freeze break request] make collectd_apache a default of the apache role.

2015-05-25 Thread Stephen John Smoogen
+1 Thanks

On 24 May 2015 at 22:38, Ricky Elrod codebl...@elrod.me wrote:
 We have a lot of app servers where collectd_apache isn't set (presumably
 people just forgot to set it). So we haven't been graphing apache
 metrics for those app servers. :(

 I'd like to propose just making it a default of the apache role.

 I tested this on wiki01.stg in 8f182ff510fef867fb1febd7afb51e263251760b
 and 74ad22a53d1230633b2bb284bcea3e494c018f59, with success.

 Patch follows.

 commit 71031420b5713aae175a1761a4db932b08bdf0b9
 Author: Ricky Elrod codebl...@fedoraproject.org
 Date:   Mon May 25 04:22:52 2015 +

 Test defining collectd_apache in the apache role.

 Signed-off-by: Ricky Elrod codebl...@fedoraproject.org

 diff --git a/roles/apache/defaults/main.yml b/roles/apache/defaults/main.yml
 new file mode 100644
 index 000..372da7b
 --- /dev/null
 +++ b/roles/apache/defaults/main.yml
 @@ -0,0 +1,2 @@
 +---
 +collectd_apache: true


 ___
 infrastructure mailing list
 infrastructure@lists.fedoraproject.org
 https://admin.fedoraproject.org/mailman/listinfo/infrastructure



-- 
Stephen J Smoogen.
___
infrastructure mailing list
infrastructure@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/infrastructure

Re: [freeze break request] Another attempt at fixing collectd on proxies/apache boxes

2015-05-25 Thread Kevin Fenzi
+1 here 

kevin


pgpDWJPjqwGXt.pgp
Description: OpenPGP digital signature
___
infrastructure mailing list
infrastructure@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/infrastructure

Re: [freeze break request] make collectd_apache a default of the apache role.

2015-05-25 Thread Kevin Fenzi
+1

Looks good to me. 

kevin


pgp8mDIPToT8R.pgp
Description: OpenPGP digital signature
___
infrastructure mailing list
infrastructure@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/infrastructure

Re: [freeze break request] Add ResolveInterval option to collectd clients

2015-05-25 Thread Ricky Elrod
Per IRC, Kevin point out that this is too new for our RHEL6 collectd
version.

Updated patch to make it conditional:

commit c5ae02db25c23304c9c7f76158b04c60a8dfaa39
Author: Ricky Elrod codebl...@fedoraproject.org
Date:   Mon May 25 03:33:34 2015 +

[collectd/base] re-resolve dns lookup after a few hours if it fails

see: https://github.com/collectd/collectd/pull/732

Signed-off-by: Ricky Elrod codebl...@fedoraproject.org

diff --git a/roles/collectd/base/files/network-client.conf
b/roles/collectd/base/files/network-client.conf
deleted file mode 100644
index a6bd125..000
--- a/roles/collectd/base/files/network-client.conf
+++ /dev/null
@@ -1,5 +0,0 @@
-LoadPlugin network
-
-Plugin network
-Server log01
-/Plugin
diff --git a/roles/collectd/base/tasks/main.yml
b/roles/collectd/base/tasks/main.yml
index 210e7d9..8e342a1 100644
--- a/roles/collectd/base/tasks/main.yml
+++ b/roles/collectd/base/tasks/main.yml
@@ -23,7 +23,7 @@

 # install collectd-network config
 - name: /etc/collectd.d/network.conf
-  copy: src=network-client.conf dest=/etc/collectd.d/network.conf
+  template: src=network-client.conf.j2 dest=/etc/collectd.d/network.conf
   tags:
   - collectd
   notify:
diff --git a/roles/collectd/base/templates/network-client.conf.j2
b/roles/collectd/base/templates/network-client.conf.j2
new file mode 100644
index 000..e39c76f
--- /dev/null
+++ b/roles/collectd/base/templates/network-client.conf.j2
@@ -0,0 +1,8 @@
+LoadPlugin network
+
+Plugin network
+Server log01
+{% if ansible_distribution_major_version != '6' %}
+ResolveInterval 14400
+{% endif %}
+/Plugin





On 05/24/2015 11:36 PM, Ricky Elrod wrote:
 By default collectd's Network module won't attempt to re-resolve
 hostnames if it fails for some reason (e.g. network not being available
 when it's first started).
 
 However there's a fairly recently added option called ResolveInterval
 which will force it to re-resolve after N seconds if it fails. The
 example in the collectd repo uses 4 hours (14400 seconds) so I used
 that, but we could probably bump it down a bit if we wanted.
 
 Patch follows.
 
 commit 34138a9e598a4fad54380ef692d70c71d7e08e41
 Author: Ricky Elrod codebl...@fedoraproject.org
 Date:   Mon May 25 03:33:34 2015 +
 
 [collectd/base] re-resolve dns lookup after a few hours if it fails
 
 see: https://github.com/collectd/collectd/pull/732
 
 Signed-off-by: Ricky Elrod codebl...@fedoraproject.org
 
 diff --git a/roles/collectd/base/files/network-client.conf
 b/roles/collectd/base/files/network-client.conf
 index a6bd125..53f74b7 100644
 --- a/roles/collectd/base/files/network-client.conf
 +++ b/roles/collectd/base/files/network-client.conf
 @@ -2,4 +2,5 @@ LoadPlugin network
 
  Plugin network
  Server log01
 +ResolveInterval 14400
  /Plugin
 




signature.asc
Description: OpenPGP digital signature
___
infrastructure mailing list
infrastructure@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/infrastructure

[freeze break request] Another attempt at fixing collectd on proxies/apache boxes

2015-05-25 Thread Ricky Elrod
SELinux is blocking collectd from connecting to apache on localhost.
Also our config was missing an Instance tag, which seems to be required,
at least on the rhel7 version of collectd-apache.

I'd like to have this working so we have apache graphs of the release
tomorrow. +1's?

-Ricky


commit 9b3821d1b99df9719e63cdecdb11647966e0635e
Author: Ricky Elrod codebl...@fedoraproject.org
Date:   Mon May 25 19:28:08 2015 +

Toggle sebool and fix missing Instance tag to collectd-apache working

Signed-off-by: Ricky Elrod codebl...@fedoraproject.org

diff --git a/roles/collectd/base/files/apache.conf
b/roles/collectd/base/files/apache.conf
index dacd82a..441da4c 100644
--- a/roles/collectd/base/files/apache.conf
+++ b/roles/collectd/base/files/apache.conf
@@ -1,6 +1,8 @@
 LoadPlugin apache

 Plugin apache
+  Instance apache
 URL http://localhost/apache-status?auto;
+  /Instance
 /Plugin

diff --git a/roles/collectd/base/tasks/main.yml
b/roles/collectd/base/tasks/main.yml
index 210e7d9..697c8cb 100644
--- a/roles/collectd/base/tasks/main.yml
+++ b/roles/collectd/base/tasks/main.yml
@@ -56,6 +56,14 @@
   - restart collectd
   when: collectd_apache is defined

+- name: Let collectd talk to apache over tcp
+  seboolean: name=collectd_tcp_network_connect state=yes persistent=yes
+  tags:
+  - collectd
+  ignore_errors: True
+  notify:
+  - restart collectd
+  when: collectd_apache is defined

 # Three tasks for handling our (two) custom selinux modules.
 - name: ensure a directory exists for our custom selinux module



signature.asc
Description: OpenPGP digital signature
___
infrastructure mailing list
infrastructure@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/infrastructure

[piotr.mal...@grupaonet.pl: New public mirror Fedora PL.]

2015-05-25 Thread Adrian Reber
There is a fix missing, I think for varnish, to make the mirrormanager
flask application work without a '/' at the end. Would be good if this
could be added. I changed the MirrorManager instructions in the wiki to
point to the correct URL to avoid troubles like this.

Adrian

- Forwarded message from Maluty Piotr piotr.mal...@grupaonet.pl -

Date: Mon, 25 May 2015 18:08:38 +0200
From: Maluty Piotr piotr.mal...@grupaonet.pl
To: 'mirror-ad...@fedoraproject.org' mirror-ad...@fedoraproject.org
Subject: New public mirror Fedora PL.

Hi,

I run mirror Fedora in Poland.
HTTP:  http://mirror.onet.pl/pub/mirrors/fedora/linux/
FTP: ftp://mirror.onet.pl/pub/mirrors/fedora/linux/
RSYNC:  rsync://mirror.onet.pl/pub/mirrors/fedora/
Sync schedule: 4 times/day
Bandwidth: 10Gb/s
Location: Poland
Sponsor: Grupa Onet.pl S.A.
Sponsor URL: http://www.onet.pl/
IP : 213.180.139.200, 2a02:c10:2170:4::bebe
Email contact: piotr.mal...@grupaonet.plmailto:piotr.mal...@grupaonet.pl.

follow instructions and get an error.

Not Found
The requested URL /mirrormanager was not found on this server.
Apache/2.2.15 (Red Hat) Server at localhost Port 6081


Pozdrawiam
Piotr Maluty
Administrator Systemow
Grupa Onet.pl SA
ul. Bobrzynskiego 12 E
30-348 Krakow
tel.: +48 600 206 065


___
Mirror-admin mailing list
mirror-ad...@fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/mirror-admin


- End forwarded message -


pgpnY0brOh_7G.pgp
Description: PGP signature
___
infrastructure mailing list
infrastructure@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/infrastructure

Re: [freeze break request] Add ResolveInterval option to collectd clients

2015-05-25 Thread Kevin Fenzi
+1

kevin


pgp4wnI2ACEoa.pgp
Description: OpenPGP digital signature
___
infrastructure mailing list
infrastructure@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/infrastructure

Meeting Agenda Item: Sergio gonzalez

2015-05-25 Thread sergio gonzalez
Hello my name is sergio gonzalez and i'm live in argentina,
mi irc is:hackendemoniado
I'm a student of engineering in systems, and I want to collaborate scheduled 
and reporting bugs, want to learn about the steps to report bugs and how to 
find them
 if you need more information just write me an email
  ___
infrastructure mailing list
infrastructure@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/infrastructure