Skip to content

Commit

Permalink
Reorganize the repository and add Linux scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-zurczak committed Jan 21, 2015
1 parent c6c5574 commit 8c50f42
Show file tree
Hide file tree
Showing 13 changed files with 472 additions and 27 deletions.
6 changes: 3 additions & 3 deletions NOTICE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Roboconf Debian Packages
Copyright 2012-2014 Linagora, Université Joseph Fourier, Floralis
Roboconf System Installers
Copyright 2012-2015 Linagora, Université Joseph Fourier, Floralis

The present code is developed in the scope of their joint LINAGORA -
The present code is developed in the scope of the joint LINAGORA -
Université Joseph Fourier - Floralis research program and is designated
as a "Result" pursuant to the terms and conditions of the LINAGORA
- Université Joseph Fourier - Floralis research program. Each copyright
Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# Roboconf's Debian Packages
# Roboconf's System Installers
[![License](https://pypip.in/license/apache-libcloud/badge.png)](http://www.apache.org/licenses/LICENSE-2.0)

Website: [http://roboconf.net](http://roboconf.net)
Licensed under the terms of the **Apache License v2**.

The sources to build Debian packages for both the Roboconf agent and the DM.
The sources for system installers.
This includes Linux scripts, Debian packages, etc.

They are located in a different Git repository because for a given version of Roboconf,
there may be several released Debian packages.
there may be several released installers. Said differently, fixing something in an installer
does not mean the binaries (e.g. the platform) have to be changed.
50 changes: 37 additions & 13 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
Copyright 2014 Linagora, Université Joseph Fourier, Floralis
Copyright 2014-2015 Linagora, Université Joseph Fourier, Floralis
The present code is developed in the scope of their joint LINAGORA -
The present code is developed in the scope of the joint LINAGORA -
Université Joseph Fourier - Floralis research program and is designated
as a "Result" pursuant to the terms and conditions of the LINAGORA
- Université Joseph Fourier - Floralis research program. Each copyright
Expand Down Expand Up @@ -34,28 +34,52 @@
<parent>
<groupId>net.roboconf</groupId>
<artifactId>roboconf-parent</artifactId>
<version>1.1</version>
<version>1.2</version>
</parent>

<groupId>net.roboconf</groupId>
<artifactId>roboconf-debian-packages</artifactId>
<version>1.0-SNAPSHOT</version>
<name>Roboconf :: Debian Packages</name>
<artifactId>roboconf-system-installers</artifactId>
<version>0.2-SNAPSHOT</version>
<name>Roboconf :: System Installers</name>
<packaging>pom</packaging>

<properties>
<roboconf.version>0.2-SNAPSHOT</roboconf.version>
</properties>

<modules>
<module>roboconf-linux-install-scripts</module>

<!--
<module>roboconf-dist-debian-agent</module>
<module>roboconf-dist-debian-dm</module>
-->
</modules>

<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.9</version>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.5.3</version>
</plugin>
</plugins>
</pluginManagement>
</build>

<scm>
<connection>scm:git:[email protected]:roboconf/roboconf-debian-packages.git</connection>
<developerConnection>scm:git:[email protected]:roboconf/roboconf-debian-packages.git</developerConnection>
<url>[email protected]:roboconf/roboconf-debian-packages.git</url>
<connection>scm:git:[email protected]:roboconf/roboconf-system-installers.git</connection>
<developerConnection>scm:git:[email protected]:roboconf/roboconf-system-installers.git</developerConnection>
<url>[email protected]:roboconf/roboconf-system-installers.git</url>
</scm>

</project>
8 changes: 4 additions & 4 deletions roboconf-dist-debian-agent/pom.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
Copyright 2014 Linagora, Université Joseph Fourier, Floralis
Copyright 2014-2015 Linagora, Université Joseph Fourier, Floralis
The present code is developed in the scope of their joint LINAGORA -
The present code is developed in the scope of the joint LINAGORA -
Université Joseph Fourier - Floralis research program and is designated
as a "Result" pursuant to the terms and conditions of the LINAGORA
- Université Joseph Fourier - Floralis research program. Each copyright
Expand Down Expand Up @@ -33,9 +33,9 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>net.roboconf</groupId>
<artifactId>roboconf-platform-parent</artifactId>
<artifactId>roboconf-system-installers</artifactId>
<version>0.2-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
<relativePath>../pom.xml</relativePath>
</parent>

<groupId>net.roboconf</groupId>
Expand Down
8 changes: 4 additions & 4 deletions roboconf-dist-debian-dm/pom.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
Copyright 2014 Linagora, Université Joseph Fourier, Floralis
Copyright 2014-2015 Linagora, Université Joseph Fourier, Floralis
The present code is developed in the scope of their joint LINAGORA -
The present code is developed in the scope of the joint LINAGORA -
Université Joseph Fourier - Floralis research program and is designated
as a "Result" pursuant to the terms and conditions of the LINAGORA
- Université Joseph Fourier - Floralis research program. Each copyright
Expand Down Expand Up @@ -33,9 +33,9 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>net.roboconf</groupId>
<artifactId>roboconf-platform-parent</artifactId>
<artifactId>roboconf-system-installers</artifactId>
<version>0.2-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
<relativePath>../pom.xml</relativePath>
</parent>

<groupId>net.roboconf</groupId>
Expand Down
19 changes: 19 additions & 0 deletions roboconf-linux-install-scripts/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
*.class

# Package Files #
*.jar
*.war
*.ear

# Maven related elements or those that can be generated from the POM
.project
.classpath
/.externalToolBuilders
/target
/bin
/maven-eclipse.xml
/.settings

#idea
*.iml
.idea/
69 changes: 69 additions & 0 deletions roboconf-linux-install-scripts/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
Copyright 2014-2015 Linagora, Université Joseph Fourier, Floralis
The present code is developed in the scope of the joint LINAGORA -
Université Joseph Fourier - Floralis research program and is designated
as a "Result" pursuant to the terms and conditions of the LINAGORA
- Université Joseph Fourier - Floralis research program. Each copyright
holder of Results enumerated here above fully & independently holds complete
ownership of the complete Intellectual Property rights applicable to the whole
of said Results, and may freely exploit it in any manner which does not infringe
the moral rights of the other copyright holders.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>net.roboconf</groupId>
<artifactId>roboconf-system-installers</artifactId>
<version>0.2-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

<groupId>net.roboconf</groupId>
<artifactId>roboconf-linux-install-scripts</artifactId>
<name>Roboconf :: Install Scripts for Linux</name>
<packaging>pom</packaging>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>generate-assembly</id>
<configuration>
<appendAssemblyId>false</appendAssemblyId>
<descriptors>
<descriptor>src/main/assembly/assembly.xml</descriptor>
</descriptors>
</configuration>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
15 changes: 15 additions & 0 deletions roboconf-linux-install-scripts/src/main/assembly/assembly.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<assembly>
<id>packaging</id>
<formats>
<format>zip</format>
</formats>

<fileSets>
<fileSet>
<directory>src/main/assembly/scripts</directory>
<outputDirectory>scripts</outputDirectory>
<filtered>true</filtered>
</fileSet>
</fileSets>
</assembly>
72 changes: 72 additions & 0 deletions roboconf-linux-install-scripts/src/main/assembly/scripts/conf.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
#!/bin/sh
############################################################################
# Copyright 2014-2015 Linagora, Université Joseph Fourier, Floralis
#
# The present code is developed in the scope of the joint LINAGORA -
# Université Joseph Fourier - Floralis research program and is designated
# as a "Result" pursuant to the terms and conditions of the LINAGORA
# - Université Joseph Fourier - Floralis research program. Each copyright
# holder of Results enumerated here above fully & independently holds complete
# ownership of the complete Intellectual Property rights applicable to the whole
# of said Results, and may freely exploit it in any manner which does not infringe
# the moral rights of the other copyright holders.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
############################################################################

# These scripts were written for Ubuntu 14.x.
# Released with Roboconf ${project.version}.
# Update these parameters. You should not have to modify the others scripts.


############################################################################
# The IP address of the VM to host RabbitMQ.
IP_RMQ=

# The IP address of the VM to host the agent (used to create a template image).
IP_AGENT=

# The IP address of the VM to host the DM.
# Required only if you use the "install-dm.sh" script.
# Local DM installations do not need it.
IP_DM=

# The file for SSH connections on the VMs.
PEM_LOC=~/.ssh/your.pem

# The Roboconf version (e.g. 0.2-SNAPSHOT).
VERSION=${project.version}

# The credentials for RabbitMQ
RMQ_USER=roboconf
RMQ_PWD=roboconf


############################################################################
# The names and locations of the DM and agent archives
DM_NAME=roboconf-karaf-dist-dm-$VERSION
DM_TAR_LOC=~/.m2/repository/net/roboconf/roboconf-karaf-dist-dm/$VERSION/$DM_TAR_LOC.tar.gz

AGENT_NAME=roboconf-karaf-dist-agent-$VERSION
AGENT_TAR_LOC=~/.m2/repository/net/roboconf/roboconf-karaf-dist-agent/$VERSION/$AGENT_NAME.tar.gz


############################################################################
# The target ID (used to configure the agent).
# Tested targets: EC2, Openstack
TARGET_ID=iaas-ec2


############################################################################
# SSH options
SSH_OPTIONS="-i $PEM_LOC -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/bin/sh
############################################################################
# Copyright 2014-2015 Linagora, Université Joseph Fourier, Floralis
#
# The present code is developed in the scope of the joint LINAGORA -
# Université Joseph Fourier - Floralis research program and is designated
# as a "Result" pursuant to the terms and conditions of the LINAGORA
# - Université Joseph Fourier - Floralis research program. Each copyright
# holder of Results enumerated here above fully & independently holds complete
# ownership of the complete Intellectual Property rights applicable to the whole
# of said Results, and may freely exploit it in any manner which does not infringe
# the moral rights of the other copyright holders.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
############################################################################

. ./conf.sh


# Released with Roboconf ${project.version}.
# Do not edit further, unless you know exactly what to change.

rm -rf $DM_NAME
tar -xf $DM_NAME.tar.gz

cd $DM_NAME/etc
sed -i "s/message-server-ip = localhost/message-server-ip = $IP_RMQ/g" net.roboconf.dm.configuration.cfg
sed -i "s/message-server-username = guest/message-server-username = $RMQ_USER/g" net.roboconf.agent.configuration.cfg
sed -i "s/message-server-password = guest/message-server-password = $RMQ_PWD/g" net.roboconf.agent.configuration.cfg

echo "Installation and configuration of the DM completed successfully."
echo "You will have to start the DM manually when you need it (~/..../bin/.karaf)."
Loading

0 comments on commit 8c50f42

Please sign in to comment.