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('