Making FOG Server
-
To “rearm” the Topic 4192 : with Toggle Fog-Server IP with KSH(or shell)
My name is Fab…(from France - WestCoast) … blablabla
I work ( and conceptualize ) on a KSH Script it be able to toggle the network setting between different vlan in the entry of this Ksh ( options, arguments …)
Server Cfg = Debian Jessie .5 / Deported Dhcp Service into a “Debi-Wheezy”My question is :
Where are set the ip address ?
in wish files ?
Does it set in database too ? whereAt this moment, i’ve identified 5 flat-files to modify:
- /etc/Hostname
- /etc/network/interfaces
- /etc/resolv.conf
- /tftpboot/default.ipxe
- /var/www/fog/lib/fog/Config.class.php
is it correct ?
Thanks / Regards
-
From what I understand you want to change the IP of the server?
If so: https://wiki.fogproject.org/wiki/index.php/Change_FOG_Server_IP_Address
-
Thanks, good to know
But on my Fog-Server 1.2.0 already in Production-usage , it seems the /opt/fog/.fogsettings file is away ?
Have u got the .fogsettings 's located directory in case or Fog 1.2 is already installed ?
… If i follow you the only thing to do is to axe my “ksh-algo” with THE .fogsettings ?
No Way and no Work with the mysql database and sql queries ?Tks / Rds
-
The first set of instructions are for 1.3, the second set for older (example is 0.27, not sure if that works for 1.2, though)
-
@FaP I wrote a script recently that does all the IP changing for you, all that is required of you is to update the OS’s IP. If you’re interested I can share details.
-
@Quazz
Hi, Ok.using this file seems helpfull but i don’t find it yet … in the install tarball ?
-
@Wayne-Workman Great Job ! How does it run ? Do you put any options and parameters into you invoke script line?
iE: in Ksh way, with case / esac section easy to loop … something,
I have a vlan architecture located in different area…
What i find too is to:
1 - put(type) the number of the site into the first invocation option script
2 - put(type) thu Vid(vlan-id) of the site into the first invocation parameter scriptScore : with the “concat” of this 2 argument … Simply ‘Copy -R’ the “5 good-files” into the directory need by FOG and the Debi’8.5 Server…
I need to know how FOG-System ip server play…
…interested by your share… sure
Tks / Have a good day Sirs
-
@FaP Clone this repository to somewhere on your server (I always recommend
/root/git
https://github.com/FOGProject/fog-community-scriptsThere’s a tool in there called updateIP. First, you adjust your IP address for your OS as needed, then you would run this script which would update all the IPs in FOG and also update DHCP configuration if you have that enabled on your fog server too.
Do let me know how it goes.