Basically, I’m tired of having a million different projects with different file structures and files in weird locations. So I’m going to start creating all my projects going forward with this script and project structure to help keep me organized
-
Full directory path
-
Project name
-
Number in cluster
-
Hostname for cluster
$ /home/jmarley/projects/project\ starter/project_starter.sh \
<project-dir> <project-name> <number-in-cluster> <cluster-hostname>
Note
|
This will create the basic file structure for my project WARNING: Please make sure that you are using the latest atomic container |
$ cp ~/applications/linux/fedora-cloud/installers/Fedora-Cloud-Atomic-23-20151030.x86_64.qcow2 ./cluster/ftp_minion01/images/Fedora-Cloud-Atomic-23-20151030-ftp_server.x86_64.qcow2
$ vim <project-dir>/<project-name>/cluster/<cluster-hostname>{number-in-cluster}/user-data
TODO, I want to bass this off of cloud-init and fedora atomic
$ genisoimage -output <cluster-dir>/iso/<iso-nam>.iso -volid cidata -joliet -rock user-data meta-data
$
-
number 1