diff --git a/Gemfile b/Gemfile deleted file mode 100644 index 019213a..0000000 --- a/Gemfile +++ /dev/null @@ -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 diff --git a/README.md b/README.md index 622c6cd..ec889a9 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ -# OpenStack Planet Module +This project is no longer maintained. -This module installs and configures Planet \ No newline at end of file +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. diff --git a/Rakefile b/Rakefile deleted file mode 100644 index 7f22329..0000000 --- a/Rakefile +++ /dev/null @@ -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') \ No newline at end of file diff --git a/manifests/init.pp b/manifests/init.pp deleted file mode 100644 index 47f5aa6..0000000 --- a/manifests/init.pp +++ /dev/null @@ -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 diff --git a/manifests/site.pp b/manifests/site.pp deleted file mode 100644 index 970b436..0000000 --- a/manifests/site.pp +++ /dev/null @@ -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 diff --git a/metadata.json b/metadata.json deleted file mode 100644 index 80a7890..0000000 --- a/metadata.json +++ /dev/null @@ -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": [] -} \ No newline at end of file diff --git a/spec/acceptance/basic_spec.rb b/spec/acceptance/basic_spec.rb deleted file mode 100755 index 61ae0d9..0000000 --- a/spec/acceptance/basic_spec.rb +++ /dev/null @@ -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('Planet OpenStack') } - end - -end diff --git a/spec/acceptance/fixtures/default.pp b/spec/acceptance/fixtures/default.pp deleted file mode 100644 index f2773ee..0000000 --- a/spec/acceptance/fixtures/default.pp +++ /dev/null @@ -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'], -} diff --git a/spec/acceptance/nodesets/default.yml b/spec/acceptance/nodesets/default.yml deleted file mode 100644 index 3bb3e62..0000000 --- a/spec/acceptance/nodesets/default.yml +++ /dev/null @@ -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 diff --git a/spec/acceptance/nodesets/nodepool-centos7.yml b/spec/acceptance/nodesets/nodepool-centos7.yml deleted file mode 100644 index c552874..0000000 --- a/spec/acceptance/nodesets/nodepool-centos7.yml +++ /dev/null @@ -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 diff --git a/spec/acceptance/nodesets/nodepool-trusty.yml b/spec/acceptance/nodesets/nodepool-trusty.yml deleted file mode 100644 index 9fc624e..0000000 --- a/spec/acceptance/nodesets/nodepool-trusty.yml +++ /dev/null @@ -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 diff --git a/spec/acceptance/nodesets/nodepool-xenial.yml b/spec/acceptance/nodesets/nodepool-xenial.yml deleted file mode 100644 index 99dd318..0000000 --- a/spec/acceptance/nodesets/nodepool-xenial.yml +++ /dev/null @@ -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