search for: set_hostnam

Displaying 20 results from an estimated 21 matches for "set_hostnam".

Did you mean: set_hostname
2009 May 15
1
[PATCH server] add server-side groundwork for remote freeipa server
...y => Service[dnsmasq], - require => Package["dnsmasq"] - } - - single_exec {"add_dns_server_to_resolv.conf": - command => "/bin/sed -e '1i nameserver $admin_ipaddr' -i /etc/resolv.conf", - require => [Single_exec["set_hostname"]] + enable => true } - augeas{"appliance_info": - context => "/files/etc/dnsmasq.conf", - changes => [ - "set conf-dir /etc/dnsmasq.d" + augeas{"appliance_info": + context => "/files/etc/...
2010 May 13
0
[PATCH matahari] Moving QMF functionality into a transport layer.
..."Unknown"; - string hypervisor = "Unknown"; - string architecture = "None"; - unsigned long memory = 0; - bool beeping = false; +string +Host:: get_uuid() const +{ + return _uuid; +} - ifstream input("/var/lib/dbus/machine-id"); +void +Host::set_hostname(const string hostname) +{ + _hostname = hostname; +} - if(input.is_open()) - { - getline(input, uuid); - input.close(); - } +string +Host::get_hostname() const +{ + return _hostname; +} - if(!uname(&details)) - { - hostname = string(details.nodename); - arc...
2008 Jul 01
6
OpenVZ configuration of networking with puppet - big crash
...I want to do this. The answer is, I can get rid of all the distro-specific shell scripts that openVZ includes by default and boil it down to simple puppet manifests streamlined by use of Puppet''s Resource Abstraction layer. [jleggett@lxp6d15m3 scripts]$ ls arch-add_ip.sh gentoo-set_hostname.sh slackware-9.x_del_ip.sh arch-del_ip.sh gentoo-set_ugid_quota.sh slackware-add_ip.sh arch-set_hostname.sh postcreate.sh slackware-del_ip.sh arch-set_ugid_quota.sh redhat-7.x_add_ip.sh slackware- set_hostname.sh debian-add_ip.sh redhat-add_ip.sh slac...
2009 Jun 04
1
[PATCH node] Hostname is now properly persisted between reboots. rhbz#504166
...'exit $?' 1 2 13 15 +warn() { printf '%s\n' "$*" >&2; } + +if ! is_local_storage_configured; then + warn "Local storage must be configured prior to setting the hostname." + exit 99 +fi + HOSTNAME_FILE="/etc/sysconfig/network" function set_hostname { @@ -17,8 +24,9 @@ set /files$HOSTNAME_FILE/HOSTNAME "$1" EOF rc=$? if [ $rc = 0 ]; then - /bin/hostname "$1" - rc=$? + /bin/hostname "$1" + rc=$? + if [ $rc -eq 0 ]; then /usr/sbin/persist $HOSTNAME_FILE; fi fi stop_lo...
2014 Feb 13
2
Re: [PATCH] mllib: hostname: replace the hostname on Debian also in /etc/hosts (RHBZ#953907).
On Thursday 13 February 2014 13:33:16 Richard W.M. Jones wrote: > On Thu, Feb 13, 2014 at 02:15:31PM +0100, Pino Toscano wrote: > > + let expr = "/files/etc/hosts/*[label() != '#comment']/*[label() > > != 'ipaddr'][. = '" ^ oldhost ^ "']" in > Quoting? If oldhost contains a ' character + some Augeas code, this > might be
2014 Feb 12
2
[PATCH 1/2] mllib: hostname: replace the hostname on Debian also in /etc/hosts (RHBZ#953907).
...m_seed.cmx \ + perl_edit.cmx \ hostname.cmx \ timezone.cmx \ firstboot.cmx \ - perl_edit.cmx \ tTY.cmx \ fsync.cmx \ progress.cmx \ diff --git a/mllib/hostname.ml b/mllib/hostname.ml index 6702f29..e1c5d4b 100644 --- a/mllib/hostname.ml +++ b/mllib/hostname.ml @@ -42,7 +42,12 @@ let rec set_hostname (g : Guestfs.guestfs) root hostname = true | "linux", ("debian"|"ubuntu"), _ -> + let old_hostname = read_etc_hostname g in update_etc_hostname g hostname; + (match old_hostname with + | Some old_hostname -> replace_host_in_etc_hosts g ol...
2010 Apr 15
1
[PATCH matahari] Refactored the Host agent.
...+ management_object->set_uuid(uuid); + + // Hostname + char hostname_c[HOST_NAME_MAX]; + ret = gethostname(hostname_c, sizeof(hostname_c)); + if (ret != 0) + throw runtime_error("Unable to get hostname"); + string hostname(hostname_c); + management_object->set_hostname(hostname); + + // Hypervisor, arch, memory + management_object->set_memory(0); + management_object->set_hypervisor("unknown"); + management_object->set_arch("unknown"); + + virConnectPtr connection; + virNodeInfo info; + connection = virConnectOpen...
2018 Feb 12
2
[PATCH] inspect: recognize the Kali Linux distribution (RHBZ#1544227)
Read the information from os-release, and make it behave like a Debian distribution (i.e. using dpkg, and apt). --- daemon/inspect_fs.ml | 2 ++ daemon/inspect_fs_unix.ml | 1 + daemon/inspect_types.ml | 2 ++ daemon/inspect_types.mli | 1 + generator/actions_inspection.ml | 4 ++++ 5 files changed, 10 insertions(+) diff --git a/daemon/inspect_fs.ml
2009 Jun 05
1
Patch with modified commit message
This patch is from Chris Curran. I've only modified the commit message to add clarity.
2009 Jun 08
1
Rebased patch...
This is a rebase of the original patch sent.
2014 Feb 13
2
[PATCH] mllib: hostname: replace the hostname on Debian also in /etc/hosts (RHBZ#953907).
...and replace it in /etc/hosts with the new hostname. --- mllib/hostname.ml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/mllib/hostname.ml b/mllib/hostname.ml index fce16ff..0d5b5d4 100644 --- a/mllib/hostname.ml +++ b/mllib/hostname.ml @@ -42,7 +42,12 @@ let rec set_hostname (g : Guestfs.guestfs) root hostname = true | "linux", ("debian"|"ubuntu"), _ -> + let old_hostname = read_etc_hostname g in update_etc_hostname g hostname; + (match old_hostname with + | Some old_hostname -> replace_host_in_etc_hosts g ol...
2018 Feb 12
0
[PATCH] customize, sysprep, v2v: handle Kali Linux as Debian
...-> install_sysvinit_debian g; if major <= 7 then try_update_rc_d g root | "ubuntu" -> diff --git a/customize/hostname.ml b/customize/hostname.ml index 745e43ab6..88fcc0ca4 100644 --- a/customize/hostname.ml +++ b/customize/hostname.ml @@ -42,7 +42,7 @@ let rec set_hostname (g : Guestfs.guestfs) root hostname = update_etc_machine_info g hostname; true - | "linux", ("debian"|"ubuntu"), _ -> + | "linux", ("debian"|"ubuntu"|"kalilinux"), _ -> let old_hostname = read_etc_hostna...
2010 May 19
2
Squashed commits...
Refactoring the previous patch ended up creating two deltas. This patch pushes them both together into a single commit.
2016 Sep 01
2
[PATCH 0/2] customize: Fix hostname setting in Debian/Ubuntu.
https://bugzilla.redhat.com/show_bug.cgi?id=1372269 It was fairly broken. This fixes it -- except on Ubuntu 10.04 -- and adds a slow test. Rich.
2014 Jan 21
1
[PATCH 1/2] sysprep: Update comments.
--- sysprep/sysprep_operation.mli | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sysprep/sysprep_operation.mli b/sysprep/sysprep_operation.mli index 61dde72..eb89db4 100644 --- a/sysprep/sysprep_operation.mli +++ b/sysprep/sysprep_operation.mli @@ -16,14 +16,16 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. *) -(** Structure used to describe sysprep
2014 Mar 18
2
[PATCH] customize: Move virt-customize-related code to a separate
There's not going to be an easy way to present this patch. It's huge and interconnected. Anyway, what it does is lay the groundwork for a new tool which I'm calling 'virt-customize'. virt-customize is virt-builder, but without the part where it downloads a template from a respository. Just the part where it customizes the template, that is, installing packages, editing
2009 Oct 27
1
Storage admin patches
This set of patches supercedes the previous set, and has been rebased with changes from upstream.
2009 Nov 09
1
Rebased again...
This patch again rebases on upstream and should apply on next as of right now.
2009 Oct 14
0
[PATCH node] Provides a new storage administration system to the managed node.
...onfig.needs_target_path(): + self.__config.set_target_path(self.__target_path.value()) + if self.__config.needs_format(): + self.__config.set_format(self.__formats.getSelection()) + if self.__config.needs_hostname(): + self.__config.set_hostname(self.__hostname.value()) + if self.__config.needs_source_path(): + self.__config.set_source_path(self.__source_path.value()) + if self.__config.needs_build_pool(): + self.__config.set_build_pool(self.__build_pool.value()) + elif page is CO...
2009 Oct 21
1
Storage administration and refactoring of domain admin
This pair of patches provide a new storage admin interface. Then, on top of that, it refactors the domain administration pieces to now properly use storage pools and volumes when defining a new VM.