-
Notifications
You must be signed in to change notification settings - Fork 40
Prov_Packages
Clone the cortx-prvsnr repo
$ mkdir -p /opt/seagate
$ cd /opt/seagate
$ git clone https://github.com/Seagate/cortx-prvsnr.git
Generate rpm packaging for Cortx provisioner
- RPM package for Provisioner CLI -
Run the shell script to generate the rpm for provisioner cli
[root@eosnode-1 cortx-prvsnr]# ./cli/buildrpm.sh
The Provisioner CLI rpm will be generated at - /root/rpmbuild/RPMS/x86_64/
To install the cli rpm -
rpm -i cortx-prvsnr-cli-1.0.0-1_git355a5d1_el7.x86_64.rpm
After installation cortx-prvsnr folder is created inside /opt/seagate
Verify that the files are present as mentioned in the %files
at cortx-prvsnr/cli/cortx-prvsnr-cli.spec
file -
[root@eosnode-1 ~]# ls /opt/seagate/cortx/provisioner/cli/
bootstrap-eos configure-eos deploy-eos destroy-eos setup-provisioner start-eos stop-eos update-eos
%files
# %config(noreplace) /opt/seagate/cortx/provisioner/cli/%{name}.yaml
/opt/seagate/cortx/provisioner/cli/setup-provisioner
/opt/seagate/cortx/provisioner/cli/configure-eos
/opt/seagate/cortx/provisioner/cli/deploy-eos
/opt/seagate/cortx/provisioner/cli/bootstrap-eos
/opt/seagate/cortx/provisioner/cli/start-eos
/opt/seagate/cortx/provisioner/cli/stop-eos
/opt/seagate/cortx/provisioner/cli/update-eos
/opt/seagate/cortx/provisioner/cli/destroy-eos
-
RPM package for cortx-prvsnr -
Run these commands -
[root@eosnode-1 ~]# yum install -y salt-ssh
[root@eosnode-1 ~]# yum install -y salt-syndic
[root@eosnode-1 ~]# yum install -y salt-master
Run the shell script to generate the rpm for cortx-prvsnr
[root@eosnode-1 cortx-prvsnr]# ./rpms/buildrpm.sh
The cortx-prvsnr rpm will be generated at - /root/rpmbuild/RPMS/x86_64/
To install the rpm -
rpm -i cortx-prvsnr-1.0.0-1_git355a5d1_el7.x86_64.rpm
After installation cortx-prvsnr
folder is created inside /opt/seagate
Verify that the files are present as mentioned in the %files
at cortx-prvsnr/rpms/cortx-prvsnr.spec
file -
[root@eosnode-1 ~]# ls /opt/seagate/cortx/provisioner/
cli files pillar srv utils
%files
# %config(noreplace) /opt/seagate/cortx/provisioner/%{name}.yaml
/opt/seagate/cortx/provisioner/files
/opt/seagate/cortx/provisioner/pillar
/opt/seagate/cortx/provisioner/srv
/opt/seagate/cortx/provisioner/utils
Then to install the cortx stack we would be changing the file path in /etc/salt/minion
.
pillar_roots:
base:
- /opt/seagate/cortx/provisioner/pillar
file_roots:
base:
- /opt/seagate/cortx/provisioner/srv