From 8a1f6d9764e70b8b237973c962e3b69a54695ab8 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Mon, 7 Jun 2021 11:59:47 +1000 Subject: [PATCH] Cleanup eavesdrop puppet references Cleanup documenation, puppet references and the eavesdrop_opendev group. Change-Id: I67096d8eced0be54db9b1ee277b24602d8c20f00 --- README.rst | 2 +- doc/source/afs.rst | 2 +- doc/source/irc.rst | 72 ++++------- docker/gitea/custom/templates/home.tmpl | 2 +- hiera/common.yaml | 1 - manifests/eavesdrop.pp | 30 ----- .../openstack_project/manifests/eavesdrop.pp | 121 ------------------ playbooks/remote_puppet_else.yaml | 2 +- 8 files changed, 27 insertions(+), 205 deletions(-) delete mode 100644 manifests/eavesdrop.pp delete mode 100644 modules/openstack_project/manifests/eavesdrop.pp diff --git a/README.rst b/README.rst index 80bcbd7d9e..567d96bab9 100644 --- a/README.rst +++ b/README.rst @@ -73,7 +73,7 @@ will need new resources, it is best to coordinate this before review. The `#opendev` IRC on OFTC channel is the main place for interactive discussion. Feel free to ask any questions and someone will try to help ASAP. The `OpenDev -meeting `__ is a +meeting `__ is a co-ordinated time to synchronize on infrastructure issues. Issues should be added to the `agenda `__ for diff --git a/doc/source/afs.rst b/doc/source/afs.rst index e8c09cb716..e2988599c0 100644 --- a/doc/source/afs.rst +++ b/doc/source/afs.rst @@ -224,7 +224,7 @@ Creating a Volume .. See following for background on the issues - http://eavesdrop.openstack.org/irclogs/%23opendev/%23opendev.2020-06-10.log.html#t2020-06-10T22:13:43 + http://meetings.opendev.org//irclogs/%23opendev/%23opendev.2020-06-10.log.html#t2020-06-10T22:13:43 https://review.opendev.org/#/c/735061/ .. warning:: diff --git a/doc/source/irc.rst b/doc/source/irc.rst index 6b79d6eb81..b826eead41 100644 --- a/doc/source/irc.rst +++ b/doc/source/irc.rst @@ -14,23 +14,15 @@ At a Glance =========== :Hosts: - * http://eavesdrop.openstack.org/ - * https://review.opendev.org/ + * http://eavesdrop01.opendev.org * https://wiki.openstack.org/wiki/Infrastructure_Status * http://ptg.openstack.org/ -:Puppet: - * https://opendev.org/opendev/puppet-meetbot - * https://opendev.org/opendev/puppet-statusbot - * https://opendev.org/opendev/puppet-ptgbot - * :git_file:`modules/openstack_project/manifests/eavesdrop.pp` - * :git_file:`modules/openstack_project/manifests/review.pp` :Configuration: * :config:`gerritbot/channels.yaml` * :config:`accessbot/channels.yaml` :Projects: + * https://github.com/ProgVal/Limnoria * https://wiki.debian.org/MeetBot - * https://sourceforge.net/projects/supybot/ - * https://opendev.org/opendev/meetbot * https://opendev.org/opendev/gerritbot * https://opendev.org/opendev/statusbot * https://opendev.org/openstack/ptgbot @@ -63,43 +55,22 @@ commands. NOTE: Channel admin should issue the access commands above BEFORE adding channel to gerritbot and accessbot, otherwise Zuul will fail tests. -Meetbot -======= +Service overview +================ -The OpenDev team runs a slightly modified -`Meetbot `_ to log IRC channel activity and -meeting minutes. Meetbot is a plugin for -`Supybot `_ which adds meeting -support features to the Supybot IRC bot. +The OpenDev team runs Limnoria `Limnoria +`__ on `eavesdrop01.opendev.org` +to provide channel and meeting logs. -Supybot -------- +Channel logs are provided by Limnoria's inbuilt channel logger. +Meeting logging is provided by the `Meetbot plugin +`__. -In order to run Meetbot you will need to get Supybot. You can find the latest -release `here `_. Once you have -extracted the release you will want to read the ``INSTALL`` and -``doc/GETTING_STARTED`` files. Those two files should have enough -information to get you going, but there are other goodies in ``doc/``. - -Once you have Supybot installed you will need to configure a bot. The -``supybot-wizard`` command can get you started with a basic config, or you can -have the OpenStack meetbot puppet module do the heavy lifting. - -One important config setting is ``supybot.reply.whenAddressedBy.chars``, which -sets the prefix character for this bot. This should be set to something other -than ``#`` as ``#`` will conflict with Meetbot (you can leave the setting blank -if you don't want a prefix character). - -Meetbot -------- - -The OpenDev Meetbot fork can be found at -https://opendev.org/opendev/meetbot. Manual installation of the Meetbot -plugin is straightforward and documented in that repository's README. -OpenDev installs and configures Meetbot through Puppet. +Running Meetings +================ Starting a Meeting -^^^^^^^^^^^^^^^^^^ +------------------ To start a meeting, use the command ``#startmeeting`` followed by the meeting name. For instance, if you are having a meeting of the @@ -114,7 +85,7 @@ meeting name to ensure logs are recorded to the same location. This feature is specific to the OpenDev Meetbot fork. Voting -^^^^^^ +------ The OpenDev Meetbot fork adds simple voting features. After a meeting has been started a meeting chair can begin a voting block with the @@ -163,17 +134,17 @@ A somewhat contrived voting example: meetbot | No (1): foo Logging -^^^^^^^ +------- Meetings are automatically logged and published at -http://eavesdrop.openstack.org/meetings/ +https://meetings.opendev.org/meetings/ The bot also has the ability to sit in a channel for the sole purpose of logging channel activity, not just meetings. Standard channel logs -are sent to http://eavesdrop.openstack.org/irclogs/ +are sent to http://meetings.opendev.org/irclogs/ -The configuration for specific channel logging can be found in the -public Hiera data file, :git_file:`hiera/common.yaml`. +The configuration for specific channel logging can be found in , +:git_file:`inventory/service/group_vars/eavesdrop.yaml`. .. _statusbot: @@ -268,12 +239,15 @@ Example:: PTG Bot ======= +.. note:: The PTG bot is currently pending conversion to run against + OFTC from the `eavesdrop01.opendev.org` server. + Bot that `Project Teams Gathering `_ room moderators use to surface what's currently happening at the event. Usage instructions are provided in its `README.rst file `_. It writes some static content into ``/var/lib/ptgbot/www`` on the -eavesdrop.openstack.org server and then serves that from a +eavesdrop01.openstack.org server and then serves that from a http://ptg.openstack.org/ Apache vhost. Code for the PTG bot lives in the openstack/ptgbot respository diff --git a/docker/gitea/custom/templates/home.tmpl b/docker/gitea/custom/templates/home.tmpl index 494ff1c96a..f1a3187098 100644 --- a/docker/gitea/custom/templates/home.tmpl +++ b/docker/gitea/custom/templates/home.tmpl @@ -177,7 +177,7 @@ functionality is limited.

Contact info

    -
  • IRC #opendev on OFTC (logs)
  • +
  • IRC #opendev on OFTC (logs)
  • Mailing list: service-discuss@lists.opendev.org (subscribe)
  • Important announcements: service-announce@lists.opendev.org (subscribe)
diff --git a/hiera/common.yaml b/hiera/common.yaml index 9375ac92c4..667a0446ad 100644 --- a/hiera/common.yaml +++ b/hiera/common.yaml @@ -98,7 +98,6 @@ cacti_hosts: - backup02.ca-ymq-1.vexxhost.opendev.org - bridge.openstack.org - cacti.openstack.org -- eavesdrop.openstack.org - eavesdrop01.opendev.org - elasticsearch02.openstack.org - elasticsearch03.openstack.org diff --git a/manifests/eavesdrop.pp b/manifests/eavesdrop.pp deleted file mode 100644 index 122f7d7dd6..0000000000 --- a/manifests/eavesdrop.pp +++ /dev/null @@ -1,30 +0,0 @@ -# Node-OS: xenial -node /^eavesdrop\d*\.open.*\.org$/ { - $group = "eavesdrop" - class { 'openstack_project::eavesdrop': - nickpass => hiera('openstack_meetbot_password'), - statusbot_nick => 'opendevstatus', - statusbot_password => hiera('statusbot_nick_password'), - statusbot_server => 'irc.oftc.net', - statusbot_channels => hiera_array('statusbot_channels', ['openstack_infra']), - statusbot_auth_nicks => hiera_array('statusbot_auth_nicks'), - statusbot_wiki_user => hiera('statusbot_wiki_username', 'username'), - statusbot_wiki_password => hiera('statusbot_wiki_password'), - statusbot_wiki_url => 'https://wiki.openstack.org/w/api.php', - # https://wiki.openstack.org/wiki/Infrastructure_Status - statusbot_wiki_pageid => '1781', - statusbot_wiki_successpageid => '7717', - statusbot_wiki_successpageurl => 'https://wiki.openstack.org/wiki/Successes', - statusbot_wiki_thankspageid => '37700', - statusbot_wiki_thankspageurl => 'https://wiki.openstack.org/wiki/Thanks', - statusbot_irclogs_url => 'http://eavesdrop.openstack.org/irclogs/%(chan)s/%(chan)s.%(date)s.log.html', - statusbot_twitter => true, - statusbot_twitter_key => hiera('statusbot_twitter_key'), - statusbot_twitter_secret => hiera('statusbot_twitter_secret'), - statusbot_twitter_token_key => hiera('statusbot_twitter_token_key'), - statusbot_twitter_token_secret => hiera('statusbot_twitter_token_secret'), - meetbot_channels => hiera('meetbot_channels', ['openstack-infra']), - ptgbot_nick => hiera('ptgbot_nick', 'username'), - ptgbot_password => hiera('ptgbot_password'), - } -} diff --git a/modules/openstack_project/manifests/eavesdrop.pp b/modules/openstack_project/manifests/eavesdrop.pp deleted file mode 100644 index 03797c8a38..0000000000 --- a/modules/openstack_project/manifests/eavesdrop.pp +++ /dev/null @@ -1,121 +0,0 @@ -# Eavesdrop server - -class openstack_project::eavesdrop ( - $nickpass = '', - $statusbot_nick = '', - $statusbot_password = '', - $statusbot_server = '', - $statusbot_channels = '', - $statusbot_auth_nicks = '', - $statusbot_wiki_user = '', - $statusbot_wiki_password = '', - $statusbot_wiki_url = '', - $statusbot_wiki_pageid = '', - $statusbot_wiki_successpageid = '', - $statusbot_wiki_successpageurl = '', - $statusbot_wiki_thankspageid = '', - $statusbot_wiki_thankspageurl = '', - $statusbot_irclogs_url = '', - $statusbot_twitter = undef, - $statusbot_twitter_key = '', - $statusbot_twitter_secret = '', - $statusbot_twitter_token_key = '', - $statusbot_twitter_token_secret = '', - $meetbot_channels = [], - $ptgbot_nick = '', - $ptgbot_password = '', -) { - include ::httpd - include meetbot - - $vhost_extra = ' - - Header set Access-Control-Allow-Origin "*" - - ' - - meetbot::site { 'openstack': - nick => 'opendevmeet', - nickpass => $nickpass, - network => 'OFTC', - server => 'irc4.oftc.net:6697', - use_ssl => 'True', - vhost_extra => $vhost_extra, - vhost_name => 'eavesdrop.openstack.org', - manage_index => false, - channels => $meetbot_channels, - } - - class { 'statusbot': - nick => $statusbot_nick, - password => $statusbot_password, - server => $statusbot_server, - channels => $statusbot_channels, - auth_nicks => $statusbot_auth_nicks, - wiki_user => $statusbot_wiki_user, - wiki_password => $statusbot_wiki_password, - wiki_url => $statusbot_wiki_url, - wiki_pageid => $statusbot_wiki_pageid, - wiki_successpageid => $statusbot_wiki_successpageid, - wiki_successpageurl => $statusbot_wiki_successpageurl, - wiki_thankspageid => $statusbot_wiki_thankspageid, - wiki_thankspageurl => $statusbot_wiki_thankspageurl, - irclogs_url => $statusbot_irclogs_url, - twitter => $statusbot_twitter, - twitter_key => $statusbot_twitter_key, - twitter_secret => $statusbot_twitter_secret, - twitter_token_key => $statusbot_twitter_token_key, - twitter_token_secret => $statusbot_twitter_token_secret, - } - - file { '/srv/meetbot-openstack/alert': - ensure => link, - target => '/var/lib/statusbot/www', - require => Class['statusbot'], - } - - if ! defined(Httpd::Mod['headers']) { - httpd::mod { 'headers': - ensure => present, - } - } - - file { '/srv/yaml2ical': - ensure => directory, - owner => 'zuul', - group => 'zuul', - } - - file { '/srv/yaml2ical/calendars': - ensure => directory, - owner => 'zuul', - group => 'zuul', - require => File['/srv/yaml2ical'], - } - - file { '/srv/meetbot-openstack/index.html': - ensure => link, - target => '/srv/yaml2ical/index.html', - require => File['/srv/yaml2ical'], - } - - file { '/srv/meetbot-openstack/irc-meetings.ical': - ensure => link, - target => '/srv/yaml2ical/irc-meetings.ical', - require => File['/srv/yaml2ical'], - } - - file { '/srv/meetbot-openstack/calendars/': - ensure => link, - target => '/srv/yaml2ical/calendars/', - require => File['/srv/yaml2ical'], - } - - class { 'ptgbot': - nick => $ptgbot_nick, - password => $ptgbot_password, - channel => '#openinfra-events', - vhost_name => 'ptg.openstack.org', - } - -} diff --git a/playbooks/remote_puppet_else.yaml b/playbooks/remote_puppet_else.yaml index aaff2c7b20..475ccc32a1 100644 --- a/playbooks/remote_puppet_else.yaml +++ b/playbooks/remote_puppet_else.yaml @@ -4,7 +4,7 @@ roles: - puppet-setup-ansible -- hosts: 'puppet:!review:!afs:!afsdb:!puppetmaster*:!nb*:!codesearch:!eavesdrop:!disabled' +- hosts: 'puppet:!review:!afs:!afsdb:!puppetmaster*:!nb*:!codesearch:!disabled' name: "Puppet-else: run puppet on all other servers" strategy: free roles: