Hi Rick,
Is this a Stacki 4.0 or 5.0 system?
There are a couple of ways.
The easiest is to turn it into an rpm and put it in a cart, that way it's available via yum and gets put on during the install.
First way:
Untar the tarball on your frontend. I'm assuming it's all in one directory.
We'll do an example:
% get usage
# stack create package
error - "name" parameter is required
[dir=string] [name=string] [prefix=string] [release=string] [rpmextra=string] [version=string]
I've got a directory we'll call /opt/stuff that has my stuff in it:
[root@kaiza ~]# mkdir /opt/stuff
[root@kaiza ~]# cp *.py* /opt/stuff/
[root@kaiza ~]# ls /opt/stuff/
arpit.py file.py getip.py imp_foreign_redhat.py temp.py test1.py test.py test.py.prom
Now I'm going to create a package for it:
stack create package dir=/opt/stuff prefix=/opt name=mystuff
Note that the prefix is one dir up from the actual "stuff" otherwise I get /opt/stuff/stuff.
The rpm is created in the directory you ran the comman from. Since my example's name was "mystuff"
# ls mystuff*.rpm
mystuff-3.2-1.x86_64.rpm
Note a couple of things. I did this on Stacki 3.2 system so the version is 3.2 and the release is 1 since that's the first time I did it. These are default. If you want to do a version and release, then put that with the "stack create package" arguments.
Now I check it, because I want to make sure.
# rpm -qpl mystuff-3.2-1.x86_64.rpm
/opt/stuff/arpit.py
/opt/stuff/file.py
/opt/stuff/getip.py
/opt/stuff/imp_foreign_redhat.py
/opt/stuff/temp.py
/opt/stuff/test.py
/opt/stuff/test.py.prom
/opt/stuff/test1.py
Now I can put this in a cart in the RPMS directory and in the cart xml file I do "<package>mystuff</package>" and it will be on the backends and available via yum.
To call your scripts in post tags:
<post>
/opt/stuff/bin/whatever.sh
</post>
The second way:
Create a cart, put the tar file in the RPMS directory. You can't call this in a package tag, but it's under the webserver directories so you can wget it or curl it in post tags.
Copy your tar file to RPMS in a cart directory. In this example the cart is my "site-custom" cart.
<post>
wget --no-check-certificate https://&Kickstart_PrivateAddress;/install/carts/site-custom/RPMS/mystuff.tar.gz
tar -xzf mystuff.tar.gz
/run/any/scripts/here
</post>
Creating a package is the preferred method.
Thanks,
Joe