diff --git a/plugins/ruby-foreman-opennebula/debian/changelog b/plugins/ruby-foreman-opennebula/debian/changelog new file mode 100644 index 0000000000..368afc5993 --- /dev/null +++ b/plugins/ruby-foreman-opennebula/debian/changelog @@ -0,0 +1,5 @@ +ruby-foreman-opennebula (2.3.0-1) stable; urgency=low + + * 2.3.0 released + + -- Vitaly Pyslar Tue, 13 Aug 2024 18:23:28 +0300 diff --git a/plugins/ruby-foreman-opennebula/debian/compat b/plugins/ruby-foreman-opennebula/debian/compat new file mode 100644 index 0000000000..ec635144f6 --- /dev/null +++ b/plugins/ruby-foreman-opennebula/debian/compat @@ -0,0 +1 @@ +9 diff --git a/plugins/ruby-foreman-opennebula/debian/control b/plugins/ruby-foreman-opennebula/debian/control new file mode 100644 index 0000000000..290de3653e --- /dev/null +++ b/plugins/ruby-foreman-opennebula/debian/control @@ -0,0 +1,13 @@ +Source: ruby-foreman-opennebula +Section: ruby +Priority: extra +Maintainer: IaaS team IVI.RU +Build-Depends: debhelper (>= 9), foreman-nulldb (>= 3.7), foreman-assets (>= 3.7), ruby-foreman-deface +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 diff --git a/plugins/ruby-foreman-opennebula/debian/copyright b/plugins/ruby-foreman-opennebula/debian/copyright new file mode 100644 index 0000000000..b4e42b9481 --- /dev/null +++ b/plugins/ruby-foreman-opennebula/debian/copyright @@ -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 +License: GPL-3.0+ + +Files: debian/* +Copyright: 2024 IVI.RU LLC +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 . + . + 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. diff --git a/plugins/ruby-foreman-opennebula/debian/gem.list b/plugins/ruby-foreman-opennebula/debian/gem.list new file mode 100644 index 0000000000..db571f9855 --- /dev/null +++ b/plugins/ruby-foreman-opennebula/debian/gem.list @@ -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" diff --git a/plugins/ruby-foreman-opennebula/debian/install b/plugins/ruby-foreman-opennebula/debian/install new file mode 100644 index 0000000000..25a750c62a --- /dev/null +++ b/plugins/ruby-foreman-opennebula/debian/install @@ -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 diff --git a/plugins/ruby-foreman-opennebula/debian/postinst b/plugins/ruby-foreman-opennebula/debian/postinst new file mode 100644 index 0000000000..d2575561dd --- /dev/null +++ b/plugins/ruby-foreman-opennebula/debian/postinst @@ -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 diff --git a/plugins/ruby-foreman-opennebula/debian/rules b/plugins/ruby-foreman-opennebula/debian/rules new file mode 100755 index 0000000000..a3f7bd0825 --- /dev/null +++ b/plugins/ruby-foreman-opennebula/debian/rules @@ -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 diff --git a/plugins/ruby-foreman-opennebula/debian/source/format b/plugins/ruby-foreman-opennebula/debian/source/format new file mode 100644 index 0000000000..89ae9db8f8 --- /dev/null +++ b/plugins/ruby-foreman-opennebula/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/plugins/ruby-foreman-opennebula/foreman_opennebula.rb b/plugins/ruby-foreman-opennebula/foreman_opennebula.rb new file mode 100644 index 0000000000..b7b987ed28 --- /dev/null +++ b/plugins/ruby-foreman-opennebula/foreman_opennebula.rb @@ -0,0 +1,2 @@ +gem 'nokogiri', '< 1.16' +gem 'foreman_opennebula', '2.3.0'