Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add foreman_opennebula plugin #11124

Open
wants to merge 1 commit into
base: deb/develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions plugins/ruby-foreman-opennebula/debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ruby-foreman-opennebula (2.3.0-1) stable; urgency=low

* 2.3.0 released

-- Vitaly Pyslar <[email protected]> Tue, 13 Aug 2024 18:23:28 +0300
1 change: 1 addition & 0 deletions plugins/ruby-foreman-opennebula/debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
13 changes: 13 additions & 0 deletions plugins/ruby-foreman-opennebula/debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Source: ruby-foreman-opennebula
Section: ruby
Priority: extra
Maintainer: IaaS team IVI.RU <[email protected]>
Build-Depends: debhelper (>= 9), foreman-nulldb (>= 3.7), foreman-assets (>= 3.7), ruby-foreman-deface
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't use deface

Suggested change
Build-Depends: debhelper (>= 9), foreman-nulldb (>= 3.7), foreman-assets (>= 3.7), ruby-foreman-deface
Build-Depends: debhelper (>= 9), foreman-nulldb (>= 3.7), foreman-assets (>= 3.7)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. It was added as dependency because of the polyglot gem module. Now I included the previous version of polyglot gem to the package to avoid conflict with deface deb and removed this dependency.

Standards-Version: 4.5.0
Homepage: https://github.com/theforeman/foreman_opennebula

Package: ruby-foreman-opennebula
Architecture: all
Depends: foreman (>= 3.7), python3-websockify, ${misc:Depends}
Description: Foreman OpenNebula compute resource plugin
Provision and manage OpenNebula VMs from Foreman
33 changes: 33 additions & 0 deletions plugins/ruby-foreman-opennebula/debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: ruby-foreman-opennebula
Source: https://github.com/theforeman/foreman_opennebula

Files: *
Copyright: 2024 IVI.RU LLC <[email protected]>
License: GPL-3.0+

Files: debian/*
Copyright: 2024 IVI.RU LLC <[email protected]>
License: GPL-3.0+

License: GPL-3.0+
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
.
On Debian systems, the complete text of the GNU General
Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".

# Please also look if there are files or directories which have a
# different copyright/license attached and list them here.
# Please avoid to pick license terms that are more restrictive than the
# packaged work, as it may make Debian's contributions unacceptable upstream.
12 changes: 12 additions & 0 deletions plugins/ruby-foreman-opennebula/debian/gem.list
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# list of gem urls to download via Jenkins, space separated
GEMS="https://rubygems.org/downloads/foreman_opennebula-2.3.0.gem"
GEMS="$GEMS https://rubygems.org/downloads/fog-opennebula-0.0.5.gem"
GEMS="$GEMS https://rubygems.org/downloads/opennebula-6.8.3.gem"
GEMS="$GEMS https://rubygems.org/downloads/nokogiri-1.15.6.gem"
GEMS="$GEMS https://rubygems.org/downloads/mini_portile2-2.8.7.gem"
GEMS="$GEMS https://rubygems.org/downloads/ipaddress-0.8.3.gem"
GEMS="$GEMS https://rubygems.org/downloads/parse-cron-0.1.4.gem"
GEMS="$GEMS https://rubygems.org/downloads/treetop-1.6.12.gem"
GEMS="$GEMS https://rubygems.org/downloads/polyglot-0.3.4.gem"
GEMS="$GEMS https://rubygems.org/downloads/xmlrpc-0.3.3.gem"
GEMS="$GEMS https://rubygems.org/downloads/webrick-1.8.1.gem"
4 changes: 4 additions & 0 deletions plugins/ruby-foreman-opennebula/debian/install
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
foreman_opennebula.rb usr/share/foreman/bundler.d
cache usr/share/foreman/vendor
webpack/foreman_opennebula var/lib/foreman/public/webpack
assets var/lib/foreman/public
21 changes: 21 additions & 0 deletions plugins/ruby-foreman-opennebula/debian/postinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/sh
# postinst script for foreman-*
#
# see: dh_installdeb(1)

if [ ! -z "${DEBUG}" ]; then
set -x
else
set -e
fi

. /usr/share/debconf/confmodule
. /usr/share/foreman/foreman-plugin.postinst-lib

# if this script aborts with an error dpkg can
# hang if daemons have been started
trap db_stop EXIT

foreman_plugin_install "foreman_opennebula" "$2"

exit 0
17 changes: 17 additions & 0 deletions plugins/ruby-foreman-opennebula/debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

PLUGIN = foreman_opennebula
PLUGIN_HAS_ASSETS = true
PLUGIN_HAS_WEBPACK = true
PLUGIN_HAS_PACKAGE_JSON = false

include /usr/share/foreman/foreman-plugin.mk
1 change: 1 addition & 0 deletions plugins/ruby-foreman-opennebula/debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (native)
2 changes: 2 additions & 0 deletions plugins/ruby-foreman-opennebula/foreman_opennebula.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
gem 'nokogiri', '< 1.16'
gem 'foreman_opennebula', '2.3.0'