A new, simpler, way to install a Cloudify manager. Runs in half the time, with a fraction of the frustration. 1000% satisfaction guaranteed.
In the local install, the only thing the user needs, is a single RPM.
The RPM is now live on S3 (community version can be found here, the premium can be found here). You can download and install it, following the instructions below.
For those who wish to manually create their own RPM (for development purposes) see below steps 1-6.
- SSH into a clean VM (or a bare metal server, of course).
- Download the
create_rpm
script to the machine with:
curl -L -O https://raw.githubusercontent.com/cloudify-cosmo/cloudify-manager-install/master/packaging/create_rpm
- Give it executable permissions:
chmod +x create_rpm
- Execute the script:
Note: For this to work you will either need an ssh key that can access cloudify-premium (premium) or cloudify-versions (community), or you will need to export GITHUB_USERNAME and GITHUB_TOKEN env vars.
./create_rpm
To build community, execute with:
./create_rpm --edition community
- This will result in an rpm created in
/tmp/cloudify-manager-install-premium-1.0-1.x86_64.rpm
or/tmp/cloudify-manager-install-community-1.0.1.x86_64.rpm
.
Note that steps 1-6 may be performed on a machine other than the one intended to serve as a Cloudify manager. It will be then up to the user to ensure the
rpm
is then copied to the other machine.
yum
install the rpm:
sudo yum install -y /tmp/cloudify-manager-install-premium-1.0-1.x86_64.rpm
or
sudo yum install -y /tmp/cloudify-manager-install-community-1.0-1.x86_64.rpm
- This step extracts necessary files on the system and gives permissions to the
/etc/cloudify/config.yaml
file. One of the files extracted is thecfy_manager
executable which will be used to actually install the manager. - Only the private and public IPs are necessary to install the manager, and those can be provided directly to the executable like this:
cfy_manager install --private-ip <PRIVATE-IP> --public-ip <PUBLIC-IP>
If more configurations are necessary, you may edit the config file in:
/etc/cloudify/config.yaml
.
- After the command has finished, you should have a working manager,
with
cfy
installed for both the current user androot
.
If you wish to change some configuration after install, just edit
config.yaml
again and run cfy_manager configure
. It takes about a minute.
At any point, you can run cfy_manager remove
, which will remove everything
Cloudify related from the machine, except the installation code, that
will remain in /etc/cloudify/config.yaml
, so that you will
have the ability to run cfy_manager install
again.
cfy_manager install
andcfy_manager configure
can be run as many times as you like. The commands are completely idempotent.- Want to reconfigure the manager, but don't want to drop the DB?
Set
"postgres": {"create_db": false}"
in the config file. - Working in offline mode? No problem.
cfy_manager install
can be used as is, assuming the RPM was somehow delivered to the machine. - Detailed debug logs of the installation process are available in
/var/log/cloudify/manager/cfy_manager.log