Skip to content
This repository has been archived by the owner on May 25, 2022. It is now read-only.

Install Cockpit #139

Closed
stevenrombauts opened this issue May 5, 2019 · 4 comments · Fixed by #140
Closed

Install Cockpit #139

stevenrombauts opened this issue May 5, 2019 · 4 comments · Fixed by #140
Milestone

Comments

@stevenrombauts
Copy link
Member

Install https://cockpit-project.org/

@stevenrombauts stevenrombauts added this to the 1.6 milestone May 5, 2019
@yiendos yiendos self-assigned this May 7, 2019
@yiendos
Copy link
Member

yiendos commented May 7, 2019

Notes

Support for cockpit comes out of the box with Ubuntu 18.04.

https://cockpit-project.org/guide/latest/

https://www.itzgeek.com/how-tos/linux/ubuntu-how-tos/install-cockpit-on-ubuntu-16-04.html

https://www.digitalocean.com/community/tutorials/how-to-install-linux-dash-on-ubuntu-14-04

Used these steps:
https://askubuntu.com/questions/488816/installation-guide-for-multiple-servers-using-cockpit

To come up with the following:


#sudo add-apt-repository ppa:jpsutton/cockpit
apt::ppa { 'ppa:jpsutton/cockpit': }

#sudo apt-get update
apt::update

#sudo apt-get install cockpit
apt::source { 'cockpit': }

#sudo apt-get install glib-networking
apt::source { 'glib-networking': }


#sudo /usr/sbin/remotectl certificate --ensure --user=root

exec { 'remotectl certificate':
  command => "/usr/sbin/remotectl certificate --ensure --user=root",
  path    => ['/usr/bin' , '/bin', '/usr/sbin/'],
  creates => '/etc/cockpit/ws-certs.d/~self-signed.cert'
}

#sudo /usr/libexec/cockpit-ws

Note still need to start this as the system starts

@yiendos
Copy link
Member

yiendos commented May 8, 2019

Notes to self for re-building box

Destroy the box:

vagrant halt

vagrant destroy

Remove puppet/modules leaving the .gitignore

Remove puppet.tmp folder

vagrant up

add the following file to the vagrant box

touch /tmp/mysql.key

nano /tmp/mysql.key

copy paste of mysql.key

sudo apt-key add /tmp/mysql.key

might have to try this a few times

vagrant provision --provision-with=puppet

might need to do this a couple of times

@yiendos
Copy link
Member

yiendos commented May 8, 2019

@stevenrombauts okie works after a few provisions... the first couple seem to fail and then it automagically works eventually. I've managed to side step the need for https:// for cockpit here:
1ffa691#diff-cd477e7da9766b4d715fc8ab54684c47R28

So the admin area can now be accessed through http://joomla.box:9090

@yiendos
Copy link
Member

yiendos commented May 8, 2019

@stevenrombauts thanks for the tips, I think this is working as expected now

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants