|
|
| (8 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt) |
| Zeile 1: |
Zeile 1: |
| =install puppetlabs repo= | | =install puppetlabs repo= |
| *wget https://apt.puppetlabs.com/puppetlabs-release-trusty.deb | | ==Ubuntu 16.04== |
| *sudo dpkg -i puppetlabs-release-trusty.deb | | *wget https://apt.puppetlabs.com/puppet5-release-xenial.deb |
| *sudo apt-get update | | *sudo dpkg -i puppet5-release-xenial.deb |
| | *sudo apt update |
| | *apt-get install puppetserver |
|
| |
|
| *https://docs.puppetlabs.com/guides/puppetlabs_package_repositories.html | | *https://docs.puppetlabs.com/guides/puppetlabs_package_repositories.html |
|
| |
|
| |
| =Installation ueber github=
| |
| *Download puppet-dashboard von https://github.com/sodabrew/puppet-dashboard als zip Datei
| |
| *vorausgesetzte Pakete installieren (falls noch nicht auf System):
| |
| apt-get install ruby
| |
| apt-get install mysql
| |
| *DB anlegen (in mysql Console)
| |
| mysql> create database dashboard_production;
| |
| Query OK, 1 row affected (0.00 sec)
| |
|
| |
| mysql> create database dashboard_development;
| |
| Query OK, 1 row affected (0.00 sec)
| |
|
| |
| mysql> create database dashboard_test;
| |
| Query OK, 1 row affected (0.00 sec)
| |
| *User anlegen mit entsprechenden Rechten auf der DB (in mysql Console)
| |
| mysql> grant all on dashboard_production.* to dashboard@localhost identified by 'geheim';
| |
| Query OK, 0 rows affected (0.00 sec)
| |
|
| |
| mysql> grant all on dashboard_development.* to dashboard@localhost;
| |
| Query OK, 0 rows affected (0.00 sec)
| |
|
| |
| mysql> grant all on dashboard_test.* to dashboard@localhost;
| |
| Query OK, 0 rows affected (0.00 sec)
| |
|
| |
| mysql> flush privileges;
| |
| Query OK, 0 rows affected (0.00 sec)
| |
| *mysql Konfiguration anpassen:
| |
| vi /etc/mysql/my.cnf
| |
|
| |
| max_allowed_packet = 32M
| |
|
| |
| service mysql restart
| |
| * entpacken (/usr/share/)
| |
| unzip puppet-dashboard-master.zip
| |
| * puppet-dashboard Konfiguration anpassen:
| |
| vi /usr/share/puppet-dashboard-master/config/settings.yml
| |
| vi /usr/share/puppet-dashboard-master/config/database.yml
| |
| * Bundler installieren ueber ruby
| |
| gem install bundler
| |
| bundle install --deployment
| |
|
| |
| Bei Auftreten des Fehlers:
| |
| An error occurred while installing mysql2 (0.3.17), and Bundler cannot continue.
| |
| Make sure that `gem install mysql2 -v '0.3.17'` succeeds before bundling.
| |
|
| |
| apt-get install libmysqlclient-dev
| |
|
| |
| Bei Auftreten des Fehlers:
| |
| An error occurred while installing nokogiri (1.5.11), and Bundler cannot continue.
| |
| Make sure that `gem install nokogiri -v '1.5.11'` succeeds before bundling.
| |
|
| |
| apt-get install libxml2-dev
| |
| apt-get install libxslt-dev
| |
|
| |
|
| |
| *Neues secret_token in ../puppet-dashboard-master/config/settings.yml erstellen
| |
| echo "secret_token: '$(bundle exec rake secret)'" >> ../puppet-dashboard-master/config/settings.yml
| |