The opendev project has been moving away from puppet and this is one of
the puppet modules that is no longer used. To simplify things for us we
are taking the extra step of retiring this repo.
Change-Id: I577721e214940a0c25c1a22bd98adc6de83c8b56
Use the new $content parameter of httpd::vhost instead of $template.
This way, the template gets rendered within the scope where it assumes
most of its variables are, and doesn't need to use the scope object
which doesn't work within a defined type. This will ensure the template
keeps working on puppet 4. This also requires adjusting some of the
template parameters that had previously been correctly scoped from the
httpd::vhost defined type.
Depends-On: https://review.openstack.org/570824
Change-Id: I3a45e99e3355d1e59d57d3d989cc03d253529bf2
Without this patch, with puppet 3, if the $manage_index variable is set,
it is ignored, since the conditional compares the string 'manage_index'
to the value 'true'. With puppet 4, this would cause a syntax error.
Change-Id: If9dc13515059a2c148ddde3108b256feb3bc1298
Looks like the location of plugins directory has changed in
ubuntu-xenial. Update manifiest to support both xenial and trusty.
Update service to subscribe to /opt/meetbot this way we don't need to
know which plugins directory is needed when on xenial or trusty.
Change-Id: I70a06093bbb1119aed52627f2a4bf1d07b74cd5b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Now that puppet-httpd has been fully migrated too, we can remove this
obsolete logic.
Change-Id: I7d796a2808891fb686a753d3148204e305b88606
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
In anticipation of puppet 4, start trying to deal with puppet 4 things
that can be helpfully predicted by puppet lint plugins. This patch also
corrects lint errors caught by the puppet-lint-empty-check gem.
The $vhost_extra default was changed from empty string to undef, which
will be evaluated as nil in the template and will result in the same
behavior (printing nothing) if left unset.
Change-Id: I31588fb2d4c1894ad9785cd001100a83f4736f2f
puppet-httpd is the openstack-infra version of puppetlabs-apache
(0.0.4) release.
This patchset will remove the puppetlabs-apache namespace from -infra
allowing for possible future patchsets to use newer puppetlabs-apache
modules.
Change-Id: I39d337bd09ede21289be67c3c2666aa543e3ec3e
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
We want to install our own index page, so make the management of
the index.html file optional, defaulting to true.
Change-Id: I09fd41a186eb5edf9368974415cf555c22bbf9d0
There is a tool, irclog2html, that knows how to take directories of irc
logs and turn them in to formatted html with per-line links. Since we do
that for build logs, and the logs associated with meetings, it seems
only sane that we do it for channel logs.
The tool groks mtime, so it will skip previously produced logs, and will
overwrite current streaming logs each time it's run. We'll need to run
the command one time by hand first, because the first run might take a
bit to eat through our history.
Change-Id: Ieed2c80d945ee35b29887d672cd9ebbd9ece2188
undefined method 'latest' for Puppet::Type::Vcsrepo::ProviderBzr
The module documentation seems to use "present" everywhere instead.
Change-Id: Ia6e116b65b7a8b25c40fd289dc3172f5abcf2da7
Add the Bugtracker plugin to the supybot used for meetbot (OpenStack).
This will restore the response of bug information to the channel when
a user references a bug in a message (e.g. 'bug XXXXXX').
Change-Id: I3ee3f1fa516bf1607ba6e79c6f911190a49b0161
We have a cgit server now, which means we should replace
all references to github with references to git.openstack.org.
Change-Id: I68ad1ce514fb4326c7d9940b5a84999af5b58562
* modules/meetbot/manifests/site.pp: Specify a nondefault vhost
template.
* modules/meetbot/templates/vhost.erb: New file, similar in content
to the default puppetlabs-apache vhost template but forcing MIME
type text/plain and a default encoding of UTF-8 for files ending in
a .log suffix.
Change-Id: Ief0253c2baac32b126472d0f97f0aa503adbbd7f
* modules/meetbot/manifests/init.pp: Remove a stray ensure absent
block for nginx configuration which tries to notify a nonexistent
service.
Change-Id: I4a086ea60afb777b72971b81ece3d53b99b29ff2
Reviewed-on: https://review.openstack.org/29863
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
Remove remaining remove_nginx usage (it has been removed).
Change-Id: Icfd8c3ad7205777e50722ea82d1922bcad523e48
Reviewed-on: https://review.openstack.org/29819
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
Change-Id: I409bd50ae374e0288531f07cfeea34856c5f8067
Reviewed-on: https://review.openstack.org/17319
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: James E. Blair <corvus@inaugust.com>
This started as a puppet-lint clean up and ended up more a refactoring
of some of the logic.
Change-Id: I5315571fbef8ff4ebe2ae77d2d2b19a6fcd5798d
Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>
Reviewed-on: https://review.openstack.org/14113
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
Change-Id: Ia0f3acd50aab07cc83d13cd12c8f7fc67f1c697d
Reviewed-on: https://review.openstack.org/10832
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
Stop using latest for packages installed by puppet. This way,
all system packages get updated, not just some random ones.
The unattended-upgrades config will email root. It is configured
for openstack servers and jenkins slaves, but not template hosts
so that it doesn't interfere with spin-up.
Also, fix some bits in the gerrit module that were causing
continuous restarts on gerrit-dev.
Install emacs.
Change-Id: I51c9083ccd3669f284fce4b50c36a37a0cac92d8
Fixes bug #992597
Adds new basic index page (to be themed at a later date)
Moves nginx file serving to somewhere safer
Adds /irclogs link
Change-Id: Idae341741cd852e98b93a5b89d720615789fd328
Make sure nginx reloads when deleting the symlink to the default setup
Make sure packages are latest so we get the latest security fixes
Change-Id: I3dbc529ead62591288cfe455d5c8348c62544dfa
We use eavesdrop.o.o not meetbot.o.o
Also put nickserv pass in secret file (note the one that was in there is not the nickserv pass)
Change-Id: I254a07a49f8b0ba611f6eae6b33a266decdd5ed2