Retire this repo

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: I18ae9291cf2ca758dd82b1969d5a3e2b5f89a866
This commit is contained in:
Clark Boylan 2022-02-17 12:49:21 -08:00
parent 03a0ee6012
commit 9c8562390a
12 changed files with 8 additions and 204 deletions

15
Gemfile
View File

@ -1,15 +0,0 @@
source 'https://rubygems.org'
if File.exists?('/home/zuul/src/git.openstack.org/openstack-infra/puppet-openstack_infra_spec_helper')
gem_checkout_method = {:path => '/home/zuul/src/git.openstack.org/openstack-infra/puppet-openstack_infra_spec_helper'}
else
gem_checkout_method = {:git => 'https://git.openstack.org/openstack-infra/puppet-openstack_infra_spec_helper'}
end
gem_checkout_method[:require] = false
group :development, :test, :system_tests do
gem 'puppet-openstack_infra_spec_helper',
gem_checkout_method
end
# vim:ft=ruby

View File

@ -1,3 +1,9 @@
# OpenStack Planet Module
This project is no longer maintained.
This module installs and configures Planet
The contents of this repository are still available in the Git
source code management system. To see the contents of this
repository before it reached its end of life, please check out the
previous commit with "git checkout HEAD^1".
For any further questions, please email
service-discuss@lists.opendev.org or join #opendev on OFTC.

View File

@ -1,8 +0,0 @@
require 'rubygems'
require 'puppetlabs_spec_helper/rake_tasks'
require 'puppet-lint/tasks/puppet-lint'
PuppetLint.configuration.fail_on_warnings = true
PuppetLint.configuration.send('disable_80chars')
PuppetLint.configuration.send('disable_autoloader_layout')
PuppetLint.configuration.send('disable_class_inherits_from_params_class')
PuppetLint.configuration.send('disable_class_parameter_defaults')

View File

@ -1,20 +0,0 @@
class planet {
package { 'planet-venus':
ensure => present,
}
file { '/srv/planet':
ensure => directory,
}
file { '/var/lib/planet':
ensure => directory,
}
file { '/var/log/planet':
ensure => directory,
}
}
# vim:sw=2:ts=2:expandtab:textwidth=79

View File

@ -1,42 +0,0 @@
define planet::site(
$git_url,
$vhost_name = "planet.${name}.org"
) {
include ::httpd
include ::logrotate
::httpd::vhost { $vhost_name:
docroot => "/srv/planet/${name}",
port => 80,
priority => '50',
require => File['/srv/planet'],
}
vcsrepo { "/var/lib/planet/${name}":
ensure => present,
provider => git,
require => File['/var/lib/planet'],
source => $git_url,
}
cron { "update_planet_${name}":
command => "date >> /var/log/planet/${name}.log && cd /var/lib/planet/${name} && git pull -q --ff-only && planet /var/lib/planet/${name}/planet.ini >> /var/log/planet/${name}.log 2>&1",
minute => '*/15',
user => 'root',
}
logrotate::file { "${name}.log":
log => "/var/log/planet/${name}.log",
options => [
'compress',
'copytruncate',
'missingok',
'rotate 7',
'daily',
'notifempty',
],
}
}
# vim:sw=2:ts=2:expandtab:textwidth=79

View File

@ -1,11 +0,0 @@
{
"name": "openstackinfra-planet",
"version": "0.0.1",
"author": "Openstack CI",
"summary": "Puppet module for Planet",
"license": "Apache 2.0",
"source": "https://git.openstack.org/openstack-infra/puppet-planet.git",
"project_page": "http://docs.openstack.org/infra/system-config/",
"issues_url": "https://storyboard.openstack.org/#!/project/772",
"dependencies": []
}

View File

@ -1,31 +0,0 @@
require 'puppet-openstack_infra_spec_helper/spec_helper_acceptance'
describe 'planet', if: os[:family] == 'ubuntu' do
def pp_path
base_path = File.dirname(__FILE__)
File.join(base_path, 'fixtures')
end
def puppet_manifest
manifest_path = File.join(pp_path, 'default.pp')
File.read(manifest_path)
end
it 'should work with no errors' do
apply_manifest(puppet_manifest, catch_failures: true)
end
it 'should be idempotent' do
apply_manifest(puppet_manifest, catch_changes: true)
end
describe command('cd /var/lib/planet/openstack && planet /var/lib/planet/openstack/planet.ini') do
its(:exit_status) { should eq 0 }
end
describe command('curl http://localhost') do
its(:stdout) { should contain('<title>Planet OpenStack</title>') }
end
end

View File

@ -1,34 +0,0 @@
include ::planet
planet::site { 'openstack':
git_url => 'https://git.openstack.org/openstack/openstack-planet',
}
$planet_config = '[Planet]
name = Planet OpenStack
link = http://planet.openstack.org/
owner_name = Monty Taylor
owner_email = mordred@inaugust.com
output_theme = classic_fancy
cache_directory = cache
output_dir = /srv/planet/openstack
feed_timeout = 20
items_per_page = 60
future_dates = ignore_date
log_level = DEBUG
bill_of_materials:
images/#{face}
[DEFAULT]
facewidth = 85
faceheight = 85
[http://www.openstack.org/blog/feed/]
name = OpenStack Blog
nick = openstack'
file { '/var/lib/planet/openstack/planet.ini':
ensure => present,
content => $planet_config,
require => Vcsrepo['/var/lib/planet/openstack'],
}

View File

@ -1,11 +0,0 @@
HOSTS:
ubuntu-server-1404-x64:
roles:
- master
platform: ubuntu-14.04-amd64
box: puppetlabs/ubuntu-14.04-64-nocm
box_url: https://vagrantcloud.com/puppetlabs/ubuntu-14.04-64-nocm
hypervisor: vagrant
CONFIG:
log_level: debug
type: git

View File

@ -1,10 +0,0 @@
HOSTS:
centos-70-x64:
roles:
- master
platform: el-7-x86_64
hypervisor: none
ip: 127.0.0.1
CONFIG:
type: foss
set_env: false

View File

@ -1,10 +0,0 @@
HOSTS:
ubuntu-14.04-amd64:
roles:
- master
platform: ubuntu-14.04-amd64
hypervisor: none
ip: 127.0.0.1
CONFIG:
type: foss
set_env: false

View File

@ -1,10 +0,0 @@
HOSTS:
ubuntu-16.04-amd64:
roles:
- master
platform: ubuntu-16.04-amd64
hypervisor: none
ip: 127.0.0.1
CONFIG:
type: foss
set_env: false