add MCollective and Raemon to the build
This commit is contained in:
parent
70e962abcf
commit
8c730e56f5
@ -10,8 +10,10 @@ $(BUILD_DIR)/mirror/gems/gems-bundle/naily/Gemfile: $(call depv,MIRROR_GEMS)
|
|||||||
$(BUILD_DIR)/mirror/gems/gems-bundle/naily/Gemfile: $(BUILD_DIR)/packages/gems/build.done
|
$(BUILD_DIR)/mirror/gems/gems-bundle/naily/Gemfile: $(BUILD_DIR)/packages/gems/build.done
|
||||||
mkdir -p $(@D)
|
mkdir -p $(@D)
|
||||||
echo -n > $@
|
echo -n > $@
|
||||||
echo "source \"file://$(SOURCE_DIR)/$(LOCAL_MIRROR_GEMS)\"" >> $@
|
for i in $(MIRROR_GEMS); do \
|
||||||
echo "gem 'naily'" >> $@
|
echo "source \"$$i\"" >> $@; \
|
||||||
|
done
|
||||||
|
echo "gem 'naily', '$(NAILY_VERSION)'" >> $@
|
||||||
$(ACTION.TOUCH)
|
$(ACTION.TOUCH)
|
||||||
|
|
||||||
$(BUILD_DIR)/mirror/gems/gems-bundle-gemfile.done: \
|
$(BUILD_DIR)/mirror/gems/gems-bundle-gemfile.done: \
|
||||||
@ -27,7 +29,8 @@ $(BUILD_DIR)/mirror/gems/gems-bundle-gemfile.done: \
|
|||||||
$(BUILD_DIR)/mirror/gems/gems-bundle.done: $(BUILD_DIR)/mirror/gems/gems-bundle-gemfile.done
|
$(BUILD_DIR)/mirror/gems/gems-bundle.done: $(BUILD_DIR)/mirror/gems/gems-bundle-gemfile.done
|
||||||
( cd $(BUILD_DIR)/mirror/gems/gems-bundle && bundle package )
|
( cd $(BUILD_DIR)/mirror/gems/gems-bundle && bundle package )
|
||||||
( cd $(BUILD_DIR)/mirror/gems/gems-bundle/naily && bundle package )
|
( cd $(BUILD_DIR)/mirror/gems/gems-bundle/naily && bundle package )
|
||||||
( cd $(BUILD_DIR)/mirror/gems/gems-bundle/vendor/cache/ && gem fetch -v 1.3.4 bundler )
|
( cd $(BUILD_DIR)/mirror/gems/gems-bundle/vendor/cache/ && \
|
||||||
|
gem fetch `for i in $(MIRROR_GEMS); do echo -n "--source $$i "; done` -v 1.3.4 bundler )
|
||||||
$(ACTION.TOUCH)
|
$(ACTION.TOUCH)
|
||||||
|
|
||||||
$(BUILD_DIR)/mirror/gems/build.done: $(call depv,LOCAL_MIRROR_GEMS)
|
$(BUILD_DIR)/mirror/gems/build.done: $(call depv,LOCAL_MIRROR_GEMS)
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
module Naily
|
module Naily
|
||||||
VERSION = '0.0.1'
|
VERSION = '0.1.0'
|
||||||
end
|
end
|
||||||
|
@ -6,10 +6,10 @@ include $(SOURCE_DIR)/astute/module.mk
|
|||||||
|
|
||||||
$(BUILD_DIR)/packages/gems/build.done: \
|
$(BUILD_DIR)/packages/gems/build.done: \
|
||||||
$(BUILD_DIR)/packages/gems/naily-$(NAILY_VERSION).gem \
|
$(BUILD_DIR)/packages/gems/naily-$(NAILY_VERSION).gem \
|
||||||
$(BUILD_DIR)/packages/gems/astute-$(ASTUTE_VERSION).gem
|
$(BUILD_DIR)/packages/gems/astute-$(ASTUTE_VERSION).gem \
|
||||||
|
$(BUILD_DIR)/packages/gems/raemon-0.3.0.gem
|
||||||
mkdir -p $(LOCAL_MIRROR_GEMS)/gems
|
mkdir -p $(LOCAL_MIRROR_GEMS)/gems
|
||||||
find $(BUILD_DIR)/packages/gems/ ! -name "build.done" \
|
cp $(BUILD_DIR)/packages/gems/*.gem $(LOCAL_MIRROR_GEMS)/gems
|
||||||
-exec cp {} $(LOCAL_MIRROR_GEMS)/gems \;
|
|
||||||
(cd $(LOCAL_MIRROR_GEMS) && gem generate_index gems)
|
(cd $(LOCAL_MIRROR_GEMS) && gem generate_index gems)
|
||||||
$(ACTION.TOUCH)
|
$(ACTION.TOUCH)
|
||||||
|
|
||||||
@ -20,3 +20,10 @@ astute_version:
|
|||||||
naily: $(BUILD_DIR)/packages/gems/naily-$(NAILY_VERSION).gem
|
naily: $(BUILD_DIR)/packages/gems/naily-$(NAILY_VERSION).gem
|
||||||
naily_version:
|
naily_version:
|
||||||
@echo $(NAILY_VERSION)
|
@echo $(NAILY_VERSION)
|
||||||
|
|
||||||
|
$(BUILD_DIR)/packages/gems/raemon-0.3.0.gem:
|
||||||
|
unzip -q $(LOCAL_MIRROR_SRC)/b78eaae57c8e836b8018386dd96527b8d9971acc.zip -d $(BUILD_DIR)/packages/gems
|
||||||
|
rm -rf $(BUILD_DIR)/packages/gems/raemon
|
||||||
|
mv $(BUILD_DIR)/packages/gems/raemon-b78eaae57c8e836b8018386dd96527b8d9971acc $(BUILD_DIR)/packages/gems/raemon
|
||||||
|
(cd $(BUILD_DIR)/packages/gems/raemon && gem build raemon.gemspec)
|
||||||
|
cp $(BUILD_DIR)/packages/gems/raemon/raemon-0.3.0.gem $(BUILD_DIR)/packages/gems
|
||||||
|
@ -64,6 +64,13 @@ $(BUILD_DIR)/packages/rpm/sandbox-packages.done: \
|
|||||||
sudo cp $(SOURCE_DIR)/packages/rpm/specs/rbenv-ruby-1.9.3-p392.spec $(SANDBOX)/tmp
|
sudo cp $(SOURCE_DIR)/packages/rpm/specs/rbenv-ruby-1.9.3-p392.spec $(SANDBOX)/tmp
|
||||||
sudo chroot $(SANDBOX) rpmbuild -vv --define "_topdir /tmp" -ba /tmp/rbenv-ruby-1.9.3-p392.spec
|
sudo chroot $(SANDBOX) rpmbuild -vv --define "_topdir /tmp" -ba /tmp/rbenv-ruby-1.9.3-p392.spec
|
||||||
|
|
||||||
|
sudo unzip -q $(SANDBOX)/tmp/SOURCES/9f8d2ec75ba326d2a37884224698f3f96ff01629.zip -d $(SANDBOX)/tmp/SOURCES
|
||||||
|
sudo rm -rf $(SANDBOX)/tmp/SOURCES/mcollective
|
||||||
|
sudo mv $(SANDBOX)/tmp/SOURCES/marionette-collective-9f8d2ec75ba326d2a37884224698f3f96ff01629 $(SANDBOX)/tmp/SOURCES/mcollective
|
||||||
|
sudo chroot $(SANDBOX) sh -c "mkdir -p ~/rpmbuild/SOURCES ~/rpmbuild/SPECS && cd /tmp/SOURCES/mcollective && rake rpm && rake gem"
|
||||||
|
cp $(SANDBOX)/tmp/SOURCES/mcollective/build/*.rpm $(BUILD_DIR)/packages/rpm/RPMS/x86_64/
|
||||||
|
cp $(SANDBOX)/tmp/SOURCES/mcollective/build/*.gem $(LOCAL_MIRROR_GEMS)/gems/
|
||||||
|
|
||||||
cp $(SANDBOX)/tmp/RPMS/x86_64/* $(BUILD_DIR)/packages/rpm/RPMS/x86_64/
|
cp $(SANDBOX)/tmp/RPMS/x86_64/* $(BUILD_DIR)/packages/rpm/RPMS/x86_64/
|
||||||
sudo sh -c "$${SANDBOX_DOWN}"
|
sudo sh -c "$${SANDBOX_DOWN}"
|
||||||
$(ACTION.TOUCH)
|
$(ACTION.TOUCH)
|
||||||
|
@ -12,10 +12,10 @@ Ruby 1.9.3-p392 inside rbenv environment
|
|||||||
rm -rf "%{name}-%{version}"
|
rm -rf "%{name}-%{version}"
|
||||||
mkdir %{name}-%{version}
|
mkdir %{name}-%{version}
|
||||||
cd %{name}-%{version}
|
cd %{name}-%{version}
|
||||||
unzip %{_sourcedir}/382db59cd0c16518d0cec0974e220a2c46aa7a25.zip
|
unzip -q %{_sourcedir}/382db59cd0c16518d0cec0974e220a2c46aa7a25.zip
|
||||||
mv rbenv-382db59cd0c16518d0cec0974e220a2c46aa7a25 rbenv
|
mv -f rbenv-382db59cd0c16518d0cec0974e220a2c46aa7a25 rbenv
|
||||||
unzip %{_sourcedir}/1fb955eead087646f4d73ac36786432c380309a9.zip
|
unzip -q %{_sourcedir}/1fb955eead087646f4d73ac36786432c380309a9.zip
|
||||||
mv ruby-build-1fb955eead087646f4d73ac36786432c380309a9 ruby-build
|
mv -f ruby-build-1fb955eead087646f4d73ac36786432c380309a9 ruby-build
|
||||||
ln -fs `pwd`/rbenv /opt
|
ln -fs `pwd`/rbenv /opt
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
@ -44,10 +44,10 @@ class mcollective::rabbitmq(
|
|||||||
notify => Service["rabbitmq-server"],
|
notify => Service["rabbitmq-server"],
|
||||||
}
|
}
|
||||||
|
|
||||||
$actualvhost = "/"
|
$actual_vhost = "/"
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
access_to_rabbimq_port { "${port}_tcp": port => $port }
|
access_to_rabbitmq_port { "${port}_tcp": port => $port }
|
||||||
|
|
||||||
class { 'rabbitmq::server':
|
class { 'rabbitmq::server':
|
||||||
service_ensure => 'running',
|
service_ensure => 'running',
|
||||||
@ -69,7 +69,7 @@ class mcollective::rabbitmq(
|
|||||||
require => Class['rabbitmq::server'],
|
require => Class['rabbitmq::server'],
|
||||||
}
|
}
|
||||||
|
|
||||||
rabbitmq_user_permissions { "${user}@${actualvhost}":
|
rabbitmq_user_permissions { "${user}@${actual_vhost}":
|
||||||
configure_permission => '.*',
|
configure_permission => '.*',
|
||||||
write_permission => '.*',
|
write_permission => '.*',
|
||||||
read_permission => '.*',
|
read_permission => '.*',
|
||||||
|
@ -33,7 +33,7 @@ node default {
|
|||||||
class { "nailgun":
|
class { "nailgun":
|
||||||
package => "Nailgun",
|
package => "Nailgun",
|
||||||
version => "0.1.0",
|
version => "0.1.0",
|
||||||
naily_version => "0.0.1",
|
naily_version => "0.1.0",
|
||||||
nailgun_group => "nailgun",
|
nailgun_group => "nailgun",
|
||||||
nailgun_user => "nailgun",
|
nailgun_user => "nailgun",
|
||||||
venv => "/opt/nailgun",
|
venv => "/opt/nailgun",
|
||||||
|
@ -7,7 +7,7 @@ class nailgun::mcollective(
|
|||||||
class { "mcollective::rabbitmq":
|
class { "mcollective::rabbitmq":
|
||||||
user => $mco_user,
|
user => $mco_user,
|
||||||
password => $mco_password,
|
password => $mco_password,
|
||||||
stomp = false,
|
stomp => false,
|
||||||
}
|
}
|
||||||
|
|
||||||
class { "mcollective::client":
|
class { "mcollective::client":
|
||||||
@ -15,7 +15,7 @@ class nailgun::mcollective(
|
|||||||
user => $mco_user,
|
user => $mco_user,
|
||||||
password => $mco_password,
|
password => $mco_password,
|
||||||
host => $ipaddress,
|
host => $ipaddress,
|
||||||
stomp = false,
|
stomp => false,
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -33,9 +33,6 @@ haproxy-1.4.19-1.el6
|
|||||||
keepalived-1.2.4-1.el6
|
keepalived-1.2.4-1.el6
|
||||||
make-3.81-20.el6
|
make-3.81-20.el6
|
||||||
man-1.6f-30.el6
|
man-1.6f-30.el6
|
||||||
mcollective-common-2.3.1-2.el6
|
|
||||||
mcollective-2.3.1-2.el6
|
|
||||||
mcollective-client-2.3.1-2.el6
|
|
||||||
memcached-1.4.4-3.el6
|
memcached-1.4.4-3.el6
|
||||||
mysql-5.1.66-2.el6_3
|
mysql-5.1.66-2.el6_3
|
||||||
mysql-devel-5.1.66-2.el6_3
|
mysql-devel-5.1.66-2.el6_3
|
||||||
@ -97,6 +94,7 @@ ruby-rdoc-1.8.7.352-7.el6_2
|
|||||||
ruby-ri-1.8.7.352-7.el6_2
|
ruby-ri-1.8.7.352-7.el6_2
|
||||||
ruby-shadow-1.4.1-13.el6
|
ruby-shadow-1.4.1-13.el6
|
||||||
rubygem-mongrel-1.1.5-3.el6
|
rubygem-mongrel-1.1.5-3.el6
|
||||||
|
rubygem-stomp-1.2.2-1.el6
|
||||||
rubygems-1.3.7-1.el6
|
rubygems-1.3.7-1.el6
|
||||||
scapy-2.0.0.10-5.el6
|
scapy-2.0.0.10-5.el6
|
||||||
screen-4.0.3-16.el6
|
screen-4.0.3-16.el6
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
https://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-uec.tar.gz
|
https://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-uec.tar.gz
|
||||||
http://www.tcpdump.org/release/libpcap-1.3.0.tar.gz
|
http://www.tcpdump.org/release/libpcap-1.3.0.tar.gz
|
||||||
http://pypcap.googlecode.com/files/pypcap-1.1.tar.gz
|
http://pypcap.googlecode.com/files/pypcap-1.1.tar.gz
|
||||||
|
https://github.com/AlexanderPavlenko/raemon/archive/b78eaae57c8e836b8018386dd96527b8d9971acc.zip
|
||||||
|
https://github.com/AlexanderPavlenko/marionette-collective/archive/9f8d2ec75ba326d2a37884224698f3f96ff01629.zip
|
||||||
https://github.com/sstephenson/rbenv/archive/382db59cd0c16518d0cec0974e220a2c46aa7a25.zip
|
https://github.com/sstephenson/rbenv/archive/382db59cd0c16518d0cec0974e220a2c46aa7a25.zip
|
||||||
https://github.com/sstephenson/ruby-build/archive/1fb955eead087646f4d73ac36786432c380309a9.zip
|
https://github.com/sstephenson/ruby-build/archive/1fb955eead087646f4d73ac36786432c380309a9.zip
|
||||||
http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
|
http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
|
||||||
|
@ -36,6 +36,11 @@ SANDBOX_PACKAGES:=\
|
|||||||
tar \
|
tar \
|
||||||
postgresql-devel \
|
postgresql-devel \
|
||||||
openssl-devel \
|
openssl-devel \
|
||||||
|
ruby \
|
||||||
|
ruby-devel \
|
||||||
|
rubygems \
|
||||||
|
rubygem-rake \
|
||||||
|
which \
|
||||||
|
|
||||||
|
|
||||||
define SANDBOX_UP
|
define SANDBOX_UP
|
||||||
|
Loading…
Reference in New Issue
Block a user