dpkg -i /cfengine-nova-hub.deb || true # will fail a bit due to systemd but it's good enough
cf-agent -IB $(hostname -i)
cf-agent -KIf update.cf && cf-agent -KI
/etc/init.d/cfengine3 start
sleep 5 # wait for services to come up
ps -efl | grep httpd
ps -efl | grep cf
curl -k --user admin:admin -X POST -F file=@/ldap-settings.phar -F encryptionKey=cfekey -F skipDuplicates=0 --insecure https://localhost/data_transfer/api/import
