opennebula-node-kvm deploy
This commit is contained in:
4
opennebula-node-kvm/etc/cron.d/opennebula-node
Normal file
4
opennebula-node-kvm/etc/cron.d/opennebula-node
Normal file
@@ -0,0 +1,4 @@
|
||||
SHELL=/bin/sh
|
||||
|
||||
# activate LVM volumes on reboot
|
||||
@reboot oneadmin test -x /var/tmp/one/tm/fs_lvm/activate && /var/tmp/one/tm/fs_lvm/activate >/dev/null 2>&1
|
||||
30
opennebula-node-kvm/etc/init.d/opennebula-gate-proxy
Normal file
30
opennebula-node-kvm/etc/init.d/opennebula-gate-proxy
Normal file
@@ -0,0 +1,30 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
name=$RC_SVCNAME
|
||||
description="OpenNebula Gate Proxy Service"
|
||||
command="/usr/bin/ruby /usr/lib/one/onegate-proxy/onegate-proxy.rb"
|
||||
command_user="oneadmin:cloud"
|
||||
pidfile="/run/one/${RC_SVCNAME}.pid"
|
||||
supervisor="supervise-daemon"
|
||||
|
||||
depend() {
|
||||
need opennebula
|
||||
after syslog networking netmount
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting $RC_SVCNAME"
|
||||
start-stop-daemon --background \
|
||||
--exec $command \
|
||||
--make-pidfile --pidfile $pidfile --user $command_user \
|
||||
--start
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping $RC_SVCNAME"
|
||||
start-stop-daemon --stop \
|
||||
--exec $command \
|
||||
--pidfile $pidfile --user $command_user
|
||||
eend $?
|
||||
}
|
||||
11
opennebula-node-kvm/etc/logrotate.d/opennebula-gate-proxy
Normal file
11
opennebula-node-kvm/etc/logrotate.d/opennebula-gate-proxy
Normal file
@@ -0,0 +1,11 @@
|
||||
/var/log/one/onegate-proxy.log {
|
||||
delaycompress
|
||||
dateext
|
||||
dateformat -%Y%m%d-%s
|
||||
compress
|
||||
weekly
|
||||
rotate 52
|
||||
missingok
|
||||
notifempty
|
||||
copytruncate
|
||||
}
|
||||
1
opennebula-node-kvm/etc/sudoers.d/opennebula-node-kvm
Normal file
1
opennebula-node-kvm/etc/sudoers.d/opennebula-node-kvm
Normal file
@@ -0,0 +1 @@
|
||||
oneadmin ALL=(ALL:ALL) NOPASSWD: ONE_CEPH, ONE_NET, ONE_OVS, ONE_LVM, ONE_MEM, ONE_VGPU
|
||||
3
opennebula-node-kvm/etc/sysctl.d/bridge-nf-call.conf
Normal file
3
opennebula-node-kvm/etc/sysctl.d/bridge-nf-call.conf
Normal file
@@ -0,0 +1,3 @@
|
||||
net.bridge.bridge-nf-call-arptables = 1
|
||||
net.bridge.bridge-nf-call-ip6tables = 1
|
||||
net.bridge.bridge-nf-call-iptables = 1
|
||||
Reference in New Issue
Block a user