need expert cloud-init

asked 2016-08-03 10:42:53 -0600

Sofiane68 gravatar image

Hi Experts! :-D

Where is the issue ? user mysql not created

#cloud-config
package_update: false
package_upgrade: false
packages:
  - ntpdate
  - lvm2
runcmd:
  - cp /etc/skel/.??* /home/mysql
  - chown -R mysql:mysql /home/mysql
  - mkdir -p /u00/app/mysql/product
  - mkdir /u00/app/mysql/local
  - mkdir /u00/app/mysql/etc
  - mkdir /u01/mysqldata/
  - mkdir /u02/mysqldata/
  - mkdir /u91/mysqlbackup
  - chown -R mysql:mysql /u00/app/mysql
  - chown -R mysql:mysql /u01/mysqldata
  - chown -R mysql:mysql /u02/mysqldata/
  - chown -R mysql:mysql /u91/mysqlbackup/
  - su - mysql
  - cd /u00/app/mysql/product
  - wget [https://mirror.cgicoders.com/mysql.com/Downloads/MySQL-5.6/mysql-5.6.32-linux-glibc2.5-x86_64.tar.gz]
  - tar -zxvf mysql-5.6.32-linux-glibc2.5-x86_64.tar.gz


users:
 - default
 - groups: users, adm
   name: mysql
   lock-passwd: false
   shell: /bin/bash
   sudo: ALL=(ALL) NOPASSWD:ALL
edit retag flag offensive close merge delete

Comments

Whats the Exact issue yor are facing ?

sunnyarora gravatar imagesunnyarora ( 2016-08-25 04:53:24 -0600 )edit