Re: [PATCH] Anitya 0.13.0 release
On 09/12/2018 01:56 AM, Clement Verna wrote: > On Wed, 12 Sep 2018 at 10:45, Michal Konečný wrote: > >> Hi, >> >> here is a patch for ansible for deployment of Anitya 0.13.0. Looks good to me. :) Note that this will still only update staging... When we want to roll this to prod openshift we will need: >>diff --git a/playbooks/openshift-apps/release-monitoring.yml >>b/playbooks/openshift-apps/release-monitoring.yml index 6b979f6..a0110e4 100644 --- a/playbooks/openshift-apps/release-monitoring.yml +++ b/playbooks/openshift-apps/release-monitoring.yml @@ -1,5 +1,5 @@ - name: make the app be real - hosts: os-masters-stg[0] + hosts: os-masters[0]:os-masters-stg[0] user: root gather_facts: False and then also the db from the existing prod host dumped and loaded (which I guess will mean a bit of downtime for the prod service). > > That's an interesting case Anitya is not in the frozen application list but > Openshift is. Since Anitya will now run on Openshift does that mean that to > deploy a new version it needs a FBR ? Nope. In this case IMHO, anitya is 'content'. We are not changing openshift config, but just adding/changing content, so I don't think it should require any freeze break. As long as the app isn't frozen and we don't need to make any changes to openshift config it should be fine. kevin signature.asc Description: OpenPGP digital signature ___ infrastructure mailing list -- infrastructure@lists.fedoraproject.org To unsubscribe send an email to infrastructure-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/infrastructure@lists.fedoraproject.org
Re: [PATCH] Anitya 0.13.0 release
On Wed, 12 Sep 2018 at 10:45, Michal Konečný wrote: > Hi, > > here is a patch for ansible for deployment of Anitya 0.13.0. > That's an interesting case Anitya is not in the frozen application list but Openshift is. Since Anitya will now run on Openshift does that mean that to deploy a new version it needs a FBR ? > mkonecny > ___ > infrastructure mailing list -- infrastructure@lists.fedoraproject.org > To unsubscribe send an email to > infrastructure-le...@lists.fedoraproject.org > Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines > List Archives: > https://lists.fedoraproject.org/archives/list/infrastructure@lists.fedoraproject.org > ___ infrastructure mailing list -- infrastructure@lists.fedoraproject.org To unsubscribe send an email to infrastructure-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/infrastructure@lists.fedoraproject.org
[PATCH] Anitya 0.13.0 release
Hi, here is a patch for ansible for deployment of Anitya 0.13.0. mkonecny diff --git a/roles/openshift-apps/release-monitoring/files/buildconfig.yml b/roles/openshift-apps/release-monitoring/files/buildconfig.yml index 24903d4fa..d490c4a52 100644 --- a/roles/openshift-apps/release-monitoring/files/buildconfig.yml +++ b/roles/openshift-apps/release-monitoring/files/buildconfig.yml @@ -31,7 +31,7 @@ items: python3-pip \ python3-psycopg2 \ python3-setuptools \ -python3-sphinxcontrib-httpdomain \ +python3-sphinxcontrib-httpdomain \ python3-social-auth-app-flask-sqlalchemy \ python3-straight-plugin \ python3-sqlalchemy \ @@ -41,7 +41,7 @@ items: dnf clean all -y RUN git clone https://github.com/release-monitoring/anitya.git && \ pushd anitya && \ -git checkout 0.12.1 && \ +git checkout 0.13.0 && \ pushd docs && \ sphinx-build-3 -b html . _build/html && \ mkdir -p ../anitya/static/docs/ && \ diff --git a/roles/openshift-apps/release-monitoring/files/cron.yml b/roles/openshift-apps/release-monitoring/files/cron.yml index 7eac536cb..385d1900c 100644 --- a/roles/openshift-apps/release-monitoring/files/cron.yml +++ b/roles/openshift-apps/release-monitoring/files/cron.yml @@ -5,11 +5,11 @@ metadata: spec: concurrencyPolicy: Forbid schedule: "10 */12 * * *" - jobTemplate: + jobTemplate: spec: template: metadata: - labels: + labels: parent: "cronjobanitya" spec: containers: @@ -23,7 +23,7 @@ spec: - mountPath: /etc/anitya name: config-volume readOnly: true - restartPolicy: OnFailure + restartPolicy: OnFailure volumes: - configMap: defaultMode: 420 diff --git a/roles/openshift-apps/release-monitoring/templates/configmap.yml b/roles/openshift-apps/release-monitoring/templates/configmap.yml index f079ccbca..7ad8d1e8c 100644 --- a/roles/openshift-apps/release-monitoring/templates/configmap.yml +++ b/roles/openshift-apps/release-monitoring/templates/configmap.yml @@ -52,6 +52,19 @@ data: 'social_core.backends.open_id.OpenIdAuth', ] +# Default regular expression used for backend +default_regex = """\ + %(name)s(?:[-_]?(?:minsrc|src|source))?[-_]([^-/_\\s]+?)(?i)(?:[-_]\ + (?:minsrc|src|source|asc|release))?\\.(?:tar|t[bglx]z|tbz2|zip)\ +""" + +# Github access token +{% if env == 'staging' %} +github_access_token = "{{ github_stg_release_monitoring }}" +{% else %} +github_access_token = "{{ github_prod_release_monitoring }}" +{% endif %} + # The logging configuration, in dictConfig format. [anitya_log_config] version = 1 ___ infrastructure mailing list -- infrastructure@lists.fedoraproject.org To unsubscribe send an email to infrastructure-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/infrastructure@lists.fedoraproject.org