Re: [CentOS] How to start a script to complete configuration

2016-11-09 Thread Bernard Fay
To Bill, The script solution is what I try to do. I am close to it. The problem I am facing at the moment is that this script need to be interactive to have input from the sysadmin. I tried to add the following lines to the service unit file to direct the interaction of the script to tty1 but

Re: [CentOS] How to start a script to complete configuration

2016-11-09 Thread Barak Korren
On 9 November 2016 at 15:06, Bill Howe wrote: > Forgot to mention. After this is setup, shutdown the VM and create a > template from it. > Then, any VMs created from this new template will auto execute your scripts. If you're just talking about VMs and templates, you can try

Re: [CentOS] How to start a script to complete configuration

2016-11-09 Thread Bill Howe
Forgot to mention. After this is setup, shutdown the VM and create a template from it. Then, any VMs created from this new template will auto execute your scripts. Bill On Wed, Nov 9, 2016 at 7:01 AM, Bill Howe wrote: > How you could do this with scripts: > > *CentOS 7* >

Re: [CentOS] How to start a script to complete configuration

2016-11-09 Thread Bill Howe
How you could do this with scripts: *CentOS 7* 1. Deploy a VM from your base CentOS 7 template 2. Copy your "my-firstboot.sh" script (or whatever its called) to a location such as /root/scripts/ 1. This scripts only job should be to mount a NFS location and execute any post

Re: [CentOS] How to start a script to complete configuration

2016-11-08 Thread Oscar Osta Pueyo
Hello, I think you can use anaconda for this task, you can configure some actions after the installation. Best regards, El dt, 8 nov 2016 a les 18:44 Leon Fauster va escriure: > Am 08.11.2016 um 16:47 schrieb cpol...@surewest.net: > > On 2016-11-07 14:35, Bernard

Re: [CentOS] How to start a script to complete configuration

2016-11-08 Thread Leon Fauster
Am 08.11.2016 um 16:47 schrieb cpol...@surewest.net: > On 2016-11-07 14:35, Bernard Fay wrote: >> Hi, >> >> We have a virtual environment based on XenServer. In this environment I >> defined a template for CentOS 7 servers. >> >> I would like to start a script a boot time to complete the

Re: [CentOS] How to start a script to complete configuration

2016-11-08 Thread Mark Haney
IIRC, there's a BootP module for Ansible. I'm not at a place where I can verify that though. On Tue, Nov 8, 2016 at 11:26 AM, Bernard Fay wrote: > It would be hard to use ansible, cfengine or whatever while there no IP > address on the new VM. > > > > On Tue, Nov 8,

Re: [CentOS] How to start a script to complete configuration

2016-11-08 Thread Bernard Fay
It would be hard to use ansible, cfengine or whatever while there no IP address on the new VM. On Tue, Nov 8, 2016 at 10:47 AM, wrote: > On 2016-11-07 14:35, Bernard Fay wrote: > > Hi, > > > > We have a virtual environment based on XenServer. In this environment I >

Re: [CentOS] How to start a script to complete configuration

2016-11-08 Thread cpolish
On 2016-11-07 14:35, Bernard Fay wrote: > Hi, > > We have a virtual environment based on XenServer. In this environment I > defined a template for CentOS 7 servers. > > I would like to start a script a boot time to complete the configuration of > new VMs based on this template. How can I have a

[CentOS] How to start a script to complete configuration

2016-11-07 Thread Bernard Fay
Hi, We have a virtual environment based on XenServer. In this environment I defined a template for CentOS 7 servers. I would like to start a script a boot time to complete the configuration of new VMs based on this template. How can I have a script started before any login prompt to ask question