Commit Graph

223 Commits

Author SHA1 Message Date
Andrew Bayer 259b04ff1c JCLOUDS-16. Switch groupId to org.apache.jclouds, change parent POM, remove old distributionManagement content, add ASF repos. 2013-05-13 12:04:42 -07:00
Ignasi Barrera 89e04c2342 Enforce the use of builders in Ruby and Chef statements 2013-04-03 10:27:46 +02:00
Andrew Gaul 371db8d18f Address Xlint warnings 2013-03-13 22:23:19 -07:00
Adrian Cole fb69ae0fa9 bump master to 1.7.0-SNAPSHOT 2013-03-08 23:02:40 -08:00
Ignasi Barrera fb70b3fd22 Improved RubyGems installation.
Enable users to configure the version of RubyGems that will be installed
and also if the system and existing gems have to be upgraded after the
installation.

Also modifies the InstallChefGems statement to allow users to specify
the desired version of the Chef gem to install.
2013-03-06 18:03:22 +01:00
adriancole c31145e42e [maven-release-plugin] prepare for next development iteration 2013-03-04 06:13:59 -08:00
adriancole 0eb3ee8091 [maven-release-plugin] prepare release jclouds-1.6.0-alpha.4 2013-03-04 06:13:57 -08:00
Ignasi Barrera 0e1e552b9d There is no need to force the Chef version anymore 2013-02-28 21:03:55 +01:00
adriancole 89fda8ee28 [maven-release-plugin] prepare for next development iteration 2013-02-04 17:30:46 -08:00
adriancole 2b0ad28f26 [maven-release-plugin] prepare release jclouds-1.6.0-alpha.2 2013-02-04 17:30:44 -08:00
adriancole 267069755e [maven-release-plugin] prepare for next development iteration 2013-02-02 08:41:53 -08:00
adriancole 7c924b312f [maven-release-plugin] prepare release jclouds-1.6.0-alpha.1 2013-02-02 08:41:51 -08:00
Adrian Cole 982c502413 Merge pull request #1245 from carlpulley/ensure_hostname_in_hosts
Issue #1240: Updated ensure_hostname_in_hosts to use SSH_CONNECTION
2013-01-25 09:46:59 -08:00
Carl Pulley 4b64563f97 Issue #1240: replaced cut with awk 2013-01-25 11:31:18 +00:00
Carl Pulley eedd8a26db Issue #1240: Updated ensure_hostname_in_hosts to use SSH_CONNECTION with failover to hostname -i 2013-01-25 11:00:14 +00:00
Adrian Cole 77b8a8c63f Merge pull request #1241 from carlpulley/ensure_hostname_in_hosts
Issue #1240: Improved handling of /etc/hosts updates by ensure_hostname_in_hosts
2013-01-24 16:29:53 -08:00
Carl Pulley 74c0b42b87 Issue #1240: Improved handling of /etc/hosts updates by ensure_hostname_in_hosts 2013-01-24 22:49:17 +00:00
adriancole dc4ca1efbd removed deprecated methods which were easy to do 2013-01-19 08:32:45 -08:00
Adrian Cole 3ac6f475e7 unwound dependencies relating to ssh keys and crypt 2013-01-13 20:53:59 -08:00
Adrian Cole 0e4c10e29f PasswordGenerator only used in scriptbuilder 2013-01-12 14:09:58 -08:00
Adrian Cole cca73d8a69 removed function only used once and only accessing a single if branch 2013-01-12 13:47:07 -08:00
Adrian Cole f81a0bc016 added literal statement for when you don't want any magic 2013-01-01 17:08:17 -08:00
Ignasi Barrera df8b8dad20 Install the appropriate chef gem version 2012-12-28 17:30:08 +01:00
Adrian Cole 992daf87ad scriptbuilder doesn't need a strict bouncycastle dep 2012-12-20 09:02:04 -08:00
Ignasi Barrera 619dc2f74b Do not try to install RubyGems if already installed 2012-12-02 23:43:52 +01:00
Phillip Kroll 818db2cfc1 Update scriptbuilder/src/test/java/org/jclouds/scriptbuilder/domain/UnzipHttpResponseIntoDirectoryToTest.java
Fixed unit test accordingly #2
2012-11-24 10:33:39 +01:00
Phillip Kroll 6a2a3c365f Update scriptbuilder/src/main/java/org/jclouds/scriptbuilder/domain/UnzipHttpResponseIntoDirectory.java
The CURL option "-L" should be used here in order to allow CURL to follow HTTP redirects. Without this option, this statement will not allow to download an archive from e.g. sourceforge.org. The class "SaveHttpResponseTo" uses the "-L" option as well.
2012-11-22 18:38:39 +01:00
Adrian Cole 878ec1bcab undid Serializable and added checkstyle InterfaceIsType:allowMarkerInterfaces=false 2012-11-18 09:23:44 -08:00
Andrew Gaul d7380114a6 Enforce use of Atomics.newReference via Checkstyle
Avoids duplicating types.
2012-11-12 11:56:48 -08:00
Andrew Gaul 42a3f4a3f9 Enforce use of StringBuilder via Checkstyle
Callers usually do not intend to use a synchronized StringBuffer.
EasyMock requires use of StringBuffer in some situations.
2012-11-12 08:24:36 -08:00
Ignasi Barrera 6594b61174 Don't install unnecessary Ruby packages
Removed libruby-extras package install, since it is no needed and it
does not longer exist in Ubuntu 12.04.
Also fixed RubyGems install statement to make sure it is updated to
the latest version.
2012-11-11 11:29:02 +01:00
Ignasi Barrera 890f140c14 DataBag as a ForwardingMap and use ImmutableList.Builders to build the lists 2012-11-10 22:46:51 +01:00
Ignasi Barrera 8f839ba2d9 Added support for all command line arguments in Chef Solo 2012-11-10 14:20:10 +01:00
Ignasi Barrera 12453a66a1 Added data bag support to Chef Solo
Since Chef 0.10.4, Solo also allows to define data bags that can be used
in cookbooks. This commit enables dataBag support, allowing users to
define custom databags before executing the runlist of the node.
2012-11-10 14:15:21 +01:00
Ignasi Barrera ee8e82f57b Added support for Role definition in Chef Solo
Allow to define Roles on the fly when configuring the Chef Solo
statement in order to be able to use them later when defining the run
list for the compute node.
2012-11-10 14:15:21 +01:00
Ignasi Barrera e4fd8f2995 Added support for custom json attributes in Chef Solo 2012-11-10 14:15:21 +01:00
Adrian Cole 795fa15147 fixed broken build 2012-11-06 10:02:12 -03:00
Adrian Cole c7cff5cc94 Merge pull request #950 from nacx/chef-solo
Added basic Chef Solo support
2012-11-05 11:42:10 -08:00
Adrian Cole 6eb0cd197f Merge pull request #945 from nacx/scriptbuilder-install
Improved setupPublicCurl script
2012-11-05 11:30:44 -08:00
Andrew Gaul bfa3458b97 Prefer specific asserts where possible 2012-11-04 14:40:24 -08:00
Ignasi Barrera 6b903df372 Refactored Ruby installation into a function
Refactored Ruby installation into a separate function, and use the
Statements method to download and extract the Rubygems tarball.
2012-11-04 21:47:03 +01:00
Ignasi Barrera 3adb6a3efb Added basic Chef Solo support
Added basic support for Chef Solo, allowing users to bootstrap nodes
with Chef without having a Chef Server.

In order to bootstrap the nodes, a tarball with the cookbooks must be
made available to the node. This can be done by uploading the file to
the node using the jclous ssh client, or by providing a public URL where
the tarball can be downloaded from. The tarball *must* have a root
folder called *cookbooks* and all cookbooks must be inside it.

Once the tarball is available, the ChefSolo statement can be used to
generate the bootstrap script.
2012-11-04 21:47:03 +01:00
Ignasi Barrera 652bc2f75e Improved setupPublicCurl script
With this changes, apt and yum helper functions can be used to install
many packages at one as follows:
ensure_cmd_or_install_package_apt git git-core build-essentials <...>
2012-11-04 19:43:39 +01:00
Andrew Gaul 08b9982384 Enforce modifier order via Checkstyle
Also fix violations, via:

find -name \*.java | xargs sed -i 's/final static/static final/'
find -name \*.java | xargs sed -i 's/static private/private static/'
find -name \*.java | xargs sed -i 's/static abstract/abstract static/'
2012-11-01 20:01:30 -07:00
Andrew Gaul 35ce78f15a Correct typos 2012-11-01 13:25:44 -07:00
Andrew Gaul 93d69ece2b Enforce newline at end of file via Checkstyle
Also address all warnings, via:

find -name \*.java | while read i; do if [ x`tail -c 1 $i` != x"" ]; then echo >> $i; fi; done
2012-10-29 22:12:44 -07:00
Andrew Gaul 709ca69a2d Enforce that all imports are used via Checkstyle
Also remove all unused imports, via:

mvn checkstyle:checkstyle -Dcheckstyle.output.file=/dev/stdout -Dcheckstyle.output.format=plain | tac | awk -v FS=: '/warning/{print "sed -i " $2 "d " $1}' | while read i; do $i; done
2012-10-29 17:11:08 -07:00
Andrew Gaul 28d7a6f143 Prefer immutable over empty collections
The former does not create an object when calling iterator(), as
discussed here:

https://groups.google.com/d/msg/jclouds-dev/l7BviKDXreA/mP6Ow_RYxIgJ
2012-10-20 15:35:29 -07:00
Andrew Gaul 71080cf2e1 Use Resources.toString where possible
Replaces calls to
CharStreams.toString(Resources.newReaderSupplier(...)).
2012-10-07 15:37:40 -07:00
Adrian Cole 28d766b9df bumped to 1.6.0-SNAPSHOT 2012-09-17 01:43:52 -07:00
Dies Koper b7666da170 nslookup on CentOS 6.2 doesn't set error code when failing, so grep expected output instead 2012-08-27 14:31:33 +10:00
Dies Koper cc5dc55bb0 configure .gitattributes to not convert shell scripts to CRLF on Windows 2012-08-24 17:29:40 +10:00
Adrian Cole b6c7c51606 test for resolveFunctionDependenciesForStatements 2012-08-21 11:44:21 -07:00
Adrian Cole cd98f16408 added statement to rebase dist packages 2012-08-13 14:20:27 -07:00
Ioannis Canellos 758e01a4d2 Fixed a possible NPE when ServiceFunctionLoader finds no OSGi service for a function. 2012-08-12 21:01:13 +03:00
Adrian Cole 52e61b7024 missing class 2012-08-11 22:41:12 -07:00
Adrian Cole c7f35d3bb1 removed invalid @Nullable usage and also usage of javax package usage 2012-08-11 20:59:16 -07:00
Adrian Cole faa3f7ff45 added epel repo dep to git install 2012-08-09 17:53:30 -07:00
Adrian Cole b478b02bbe switched to binary-based package manager checks 2012-08-01 11:35:10 -07:00
Adrian Cole da6307e3a7 added git statements 2012-07-30 19:14:12 -07:00
vijaykiran 829e4af9ee optimize imports 2012-07-24 07:53:52 +02:00
vijaykiran 7227d70c4e Issue-1020 Add full name option for AdminUser and UserAdd 2012-07-23 23:42:31 +02:00
Adrian Cole c4dde78b0c Merge pull request #725 from dralves/nodepool
issue 558 - nodepool
2012-07-19 04:38:59 -07:00
Andrew Phillips 16314f906c Made scriptbuilder tests compatible with Windows 2012-07-18 09:50:59 -04:00
David Ribeiro Alves cdde419b24 re-enabled most tests and corrected some minor bugs, only destoyPoolNodes is missing 2012-07-18 01:58:18 +01:00
Adrian Cole 05fd64af44 cleaned up http builders and expect tests 2012-07-15 01:50:38 -07:00
David Ribeiro Alves d4453b2ac2 nodepool progress and AdminAccessBuilderSpec 2012-07-12 11:04:55 -07:00
Andrew Bayer 4aa8e1055a Issue #1020. Fill in GECOS field when creating a user.
We'll just use the username there as well for now.
2012-07-11 17:48:20 -07:00
Adrian Cole 4d6e8fdd73 Issue 1005:openjdk install fails on ubuntu precise 2012-07-03 22:13:53 -07:00
Andrew Gaul 227dbf777a Correct spelled from delimeter to delimiter 2012-06-14 10:05:13 -04:00
Andrew Gaul 736554d049 Correct spelling errors 2012-06-14 10:03:39 -04:00
Adrian Cole 4dd8fdd0e2 Issue 964:change script builder variable case format from lowerCamel to UPPER_UNDERSCORE 2012-06-12 19:11:09 -07:00
Ioannis Canellos 5e69df71d1 Fixed the activator declaration in scriptbuilder 2012-06-10 16:11:22 +03:00
Adrian Cole dcad558752 Issue 966: removed pid bracketing 2012-06-08 17:44:16 -07:00
Adrian Cole 73e026b314 functionloader cleanup 2012-06-08 13:00:38 -07:00
Ioannis Canellos 5627ceb2b9 Added a FunctionLoader interfaces for loading functions and also added a basic implementation and an OSGi implementation. 2012-06-08 11:12:14 -07:00
Ioannis Canellos b078adc3ce Removed fragments and dynamic imports. Added centralized control of the maven-bundle-plugin. 2012-06-03 19:41:54 +03:00
Adrian Cole 40bd08ee6b Issue 915: don't create full path on useradd 2012-05-22 23:10:41 -06:00
Aled Sage 8b6af79214 Issue 915: supports AdminAccess.adminHome, and UserAdd.home
Previously, UserAdd only supported 'defaultHome'. Now it supports 
'home' as well. This involved changing the `mkdir` from making 
defaultHome to making the actual home (felt like easier 
production-code than getting the parent directory of 'home' to mkdir,
but turned out to be a lot of test-code changes!).

Added AdminAccess.adminHome, which is a direct pass-through to 
UserAdd.home.
2012-05-21 21:10:28 +01:00
Adrian Cole 886d2cafb9 created base Context class with ProviderMetadata and Identity 2012-04-23 16:16:51 -07:00
Andrew Bayer 9b80b984a4 Switch to calling apt-get update before every apt-get install.
I found that the previous "apt-get install || (apt-get update; apt-get
install) didn't work in all cases, but switching to always calling
apt-get update got things working properly.
2012-04-19 13:02:47 -07:00
Adrian Cole 98a205b603 Issue 891: ensure we run apt update when install jdk fails 2012-04-18 15:02:06 -07:00
Andrew Gaul a3161ba7ba Throw return value instead of returning null
Throwables.propagate always throws its argument and throwing its
impossible return value better represents our intent than returning
null.
2012-04-16 13:45:23 -07:00
Adrian Cole 5a3d2a11d6 revert back to openjdk6 and without implicit apt-upgrade 2012-04-11 19:47:22 -06:00
Andrew Gaul b47860afc1 Use inference to elide duplicated type parameters
Found with:
grep 'Builder.*<.*>.*Immutable.*<.*>.*builder();'
2012-04-08 22:32:04 -07:00
Adrian Cole 95b33d335a Issue 891: update to support lucid 2012-04-03 16:22:02 -07:00
Adrian Cole 7e6b419068 Issue 891: ubuntu and centos now work with openjdk 2012-03-30 18:34:52 -07:00
Adrian Cole a6429398fd Issue 891: switch to openjdk; tested on ubuntu 2012-03-30 16:57:31 -07:00
Adrian Cole 5c6ce9f081 organize imports 2012-03-28 03:37:48 -04:00
Adrian Cole c72b3ae236 InstallJDK for 32bit vms 2012-02-26 16:55:42 +02:00
Adrian Cole 0128dcec19 attempt to fix cloudbees build 2012-02-23 16:44:23 +02:00
Adrian Cole 636c3bb6e5 Issue 357:Init script should check for errors + herefile fixes + script events 2012-02-19 01:53:19 +02:00
Ioannis Canellos 5490b3068c [842] Added required import packages to cloudfiles api bundle. Improved import packages in all bundles. 2012-02-17 00:49:39 +02:00
Adrian Cole 2da5d297a5 Issue 838: convert jboss tests and java tests to use InstallJDK 2012-02-14 23:22:24 +01:00
Adrian Cole 66c4a66159 new support for InstallJDK statement and setupPublicCurl fn 2012-02-14 02:01:42 +01:00
Adrian Cole fe4d148528 updated current version to 1.5.0-SNAPSHOT 2012-02-04 11:06:07 -08:00
Adrian Cole 3df052565f updated current version to 1.4.0-SNAPSHOT 2012-01-16 13:08:32 -08:00
Adrian Cole c151e5bdd7 Issue 730: last deprecated methods scheduled for removal in 1.3 2012-01-10 18:10:55 -08:00
Adrian Cole f9b38f646c Issue 730: removed deprecated methods from ComputeService RunScript/TemplateOptions SshClient.Factory and replaced occurences of Credentials with LoginCredentials whereever possible 2011-12-20 23:19:45 -08:00
Ioannis Canellos 148b6abbb8 Provided utility for loading classes that falls back to the Thread Context Class Loader if class is not found. 2011-11-18 22:09:25 +02:00