# mysql -u teamwebapp01 -pzwsIFHa3ZLd webapp-01-db < /srv/dbs/database-webapp-01/mysql/data-0001.sql # mysql -uroot -pP11xhDNhs4hmw -e "grant all privileges on webapp-01-db.* to identified by 'zwsIFHa3ZLd' " # mysql -uroot -pP11xhDNhs4hmw -e "create database webapp-01-db " Mysql -uroot -pP11xhDNhs4hmw -e "grant all privileges on webappdb.* to identified by 'zwsIFHa3ZLd' " Mysql -uroot -pP11xhDNhs4hmw -e "create database webappdb " (echo "mysql-server-5.7 mysql-server/root_password password P11xhDNhs4hmw" | debconf-set-selections & echo "mysql-server-5.7 mysql-server/root_password_again password P11xhDNhs4hmw" | debconf-set-selections & apt-get -y -force-yes install mysql-server-5.7) #mysql server usuario: root / senha: P11xhDNhs4hmw Vi /root/chef-repo/cookbooks/lamp/recipes/default.rb # Cookbook Name:: lamp Now open the file to put the whole recipe packages for installation: Let’s start from the required package installation for 1st cookbook Name LAMP. In My Case I will create one cookbook LAMP Including packages for Installation on Nodes.ġ. Recipes are like PHP, MYSQL, Apache package. In out first step we have to create one cookbook and recipes inside the cookbooks. In this tutorial I am planning to install LAMP, on Ubuntu server 16.04 LTS, using the chef cookbook from workstation. How To Create A Chef Cookbook And Recipes For Ubuntu Node
0 Comments
Leave a Reply. |