Puppet von puppetlabs: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Tina (Diskussion | Beiträge)
Keine Bearbeitungszusammenfassung
Tina (Diskussion | Beiträge)
Keine Bearbeitungszusammenfassung
Zeile 11: Zeile 11:
*vorausgesetzte Pakete installieren (falls noch nicht auf System):
*vorausgesetzte Pakete installieren (falls noch nicht auf System):
  apt-get install ruby  
  apt-get install ruby  
apt-get install bundler
  apt-get install mysql
  apt-get install mysql
*DB anlegen
*DB anlegen (in mysql Console)
  mysql> create database puppet_dashboard;
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)
  Query OK, 1 row affected (0.00 sec)
*User anlegen mit entsprechenden Rechten auf der DB (in mysql Console)
*User anlegen mit entsprechenden Rechten auf der DB (in mysql Console)
  mysql> grant all on puppet_dashboard.* to puppet@localhost identified by 'geheim';
  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)
  Query OK, 0 rows affected (0.00 sec)
   
   
Zeile 33: Zeile 44:
  vi /usr/share/puppet-dashboard-master/config/settings.yml
  vi /usr/share/puppet-dashboard-master/config/settings.yml
  vi /usr/share/puppet-dashboard-master/config/database.yml
  vi /usr/share/puppet-dashboard-master/config/database.yml
* Bundler installieren ueber ruby
gem install bundler
bundle install --deployment
*Neues secret_token in ../puppet-dashboard-master/config/settings.yml erstellen
echo "secret_token: '$(bundle exec rake secret)'" >> ../puppet-dashboard-master/config/settings.yml

Version vom 10. Juni 2015, 13:59 Uhr

install puppetlabs repo


Installation ueber github

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
  • Neues secret_token in ../puppet-dashboard-master/config/settings.yml erstellen
echo "secret_token: '$(bundle exec rake secret)'" >> ../puppet-dashboard-master/config/settings.yml