Latchezar Tzvetkoff
166d10d4e1
Fix `service network restart` on RHEL-7 / Fedora
...
RHEL-7 / Current Fedora versions tend to use NetworkManager for
configuring the networks, and `service network restart` might fail.
If the `NetworkManager` service is running, we should restart it,
otherwise we try restarting `network`.
2016-11-29 15:40:48 +02:00
Chris Roberts
67f3c8b48c
guests/redhat: Force NetworkManager to reload device configurations
...
When configuring network devices force NetworkManager to reload new
configuration files as they appear. This prevents NetworkManager from
attempting to continue managing devices on initial start up.
2016-10-25 07:45:38 -07:00
Chris Roberts
9d61d7c61b
Merge pull request #7818 from rswarts/vz7flavor
...
Add Virtuozzo Linux 7 to list of RHEL flavors
2016-10-11 10:35:20 -07:00
Chris Roberts
d178631ff9
Generic white space strip from command strings
2016-10-07 17:30:27 -07:00
Rutger Swarts
2ecbc241c3
Add Virtuozzo Linux 7 to list of RHEL flavors
2016-09-23 10:45:16 +02:00
AJ
2e723ea308
added general restart for network - to prevent IP address dropping on interfaces
2016-08-23 21:02:11 +01:00
AJ
1c4e7ee068
assuming a scenario - vagrant up -> power off -> vagrant up
...
vagrant will stuck on the network configuration
DEBUG ssh: stdout: mv: overwrite '/etc/sysconfig/network-scripts/ifcfg-eth0'?
DEBUG ssh: Sending SSH keep-alive...
2016-08-23 20:58:15 +01:00
Seth Vargo
084d62b5a6
guests/fedora: Move as a child of redhat
...
Fedora should have been a child of redhat for awhile now...
2016-07-18 21:12:54 -04:00
Seth Vargo
cf91bcf029
guests: Always search for FQDN without sudo
2016-07-18 21:12:54 -04:00
Seth Vargo
8f3b6511f2
guests/linux: Add shared cap for listing network interfaces
2016-07-18 21:12:54 -04:00
Satoshi Matsumoto
de9abc8f72
guests/redhat: fix network configuration in CentOS 5
...
ip command is not on PATH by default in CentOS 5 so call it with the full path.
2016-06-18 14:14:25 -04:00
Seth Vargo
b29864f450
Use symbols for defining guest capabilities
2016-06-17 19:55:04 -04:00
James Wilson
358ad8f18f
Use ip instead of deprecated ifconfig for Red Hat/CentOS guests
2016-06-16 10:06:58 +01:00
Eugene Zamriy
eaa4e11c62
Add CloudLinux 7 to RHEL 7 flavors.
2016-06-12 16:51:55 +03:00
Seth Vargo
c12b413c2e
guests/redhat: Use require_relative in redhat plugin
2016-06-06 11:58:39 -04:00
Seth Vargo
aaedc48425
guests/redhat: Do not require vagrant in guest
2016-06-06 11:58:39 -04:00
Seth Vargo
60d2f4e1b4
guests/redhat: Install RedHat in one command
2016-06-06 11:58:39 -04:00
Seth Vargo
3098c13869
guests/redhat: Configure NFS in one command
...
Previously this was very complicated trying to flip between Ruby and
bash. This commit uses a single bash command that decides between yum
and dnf in the script itself.
2016-06-06 11:58:38 -04:00
Seth Vargo
e09d342284
guests/redhat: Add tests for flavor
2016-06-06 11:58:38 -04:00
Seth Vargo
cc26c46066
guests/redhat: Configure networks in one command
...
This commit also switches to using predictable network names.
2016-06-06 11:58:38 -04:00
Seth Vargo
b91c167b19
guests/redhat: Change host name in one command
2016-06-06 11:58:38 -04:00
Seth Vargo
49ce775b53
Prefix tempfiles with vagrant-
2016-05-31 00:18:16 -04:00
Seth Vargo
7014aa3bab
Remove custom tempfile class
...
This is not actually providing any additional utility and also causes
namespace conflicts with people trying to use the real Tempfile class.
2016-05-30 23:21:47 -04:00
Seth Vargo
5a4f345363
Use Util::Tempfile when configuring networks
...
This fixes a fairly large tempfile leak. Vagrant uses a template
renderer to write network configuration files locally to disk. Then,
that temporarily file is uploaded to the remote host and moved into
place. Since Vagrant is such a short-lived process, GC never came along
and cleaned up those tempfiles, resulting in many temporary files being
created through regular Vagrant usage.
The Util::Tempfile class uses a block to ensure the temporary file is
deleted when the block finishes. This API required small tweaks to the
usage, but provides more safety to ensure the files are deleted.
2016-05-28 23:22:34 -04:00
Rickard von Essen
acde6e1b16
Use dnf on Fedora guests instead of yum if available.
...
Fixes #6286 now properly installs Docker on Fedora guests.
Fixes #6287 use dnf if available.
2015-09-20 09:30:49 +02:00
Yang Sheng Han
d09e8e6f50
guests/redhat: Fixed the NFS detection on guest, not host [GH-5948]
2015-07-13 14:18:27 +08:00
Mitchell Hashimoto
c65c62b2c1
Merge pull request #5880 from strzibny/fix-nfs
...
Fix: Rewrite Red Hat NFS handling based on systemd
2015-07-09 14:27:30 -06:00
Josef Stribny
c4733a02d4
Rewrite Red Hat nfs caps based on systemd checks
2015-06-30 10:21:58 +02:00
Josef Stribny
c1a26a66d1
Fix RHEL name and description
2015-05-19 12:58:19 +02:00
Schneider Werner-Walter
02c0bfafc6
Add Scientific Linux to RHEL 7 flavors.
2015-02-08 02:56:44 +02:00
Mitchell Hashimoto
e30ba41104
Merge pull request #4499 from sprin/centos_7_nfs_client
...
Fix NFSClient plugin for Redhat / Centos 7 guests
2014-10-23 10:09:11 -07:00
Felix Gilcher
96b011b39e
update /etc/hosts on rhel 7
...
the previous fix for #4465 assumed that the NetworkManager takes care of updating /etc/hosts with
the new hostname, but testing shows it doesn't. This change ensures that the change is always added
to /etc/hosts when the name changes.
2014-09-20 17:34:01 +02:00
sprin
a712f70634
Fix NFSClient plugin for Redhat / Centos 7 guests
...
Fixes #4476 .
2014-09-12 15:35:10 -07:00
Andy Thompson
e667bcb675
Fix failure to detect RHEL 7 flavours
2014-09-04 22:03:07 +01:00
Andy Thompson
5c988b64b5
Fixes #4450 , add another expand_path ../ to get back to the guests directory
2014-09-04 20:51:10 +01:00
Andy Thompson
fb1d4adf87
Fixes #4438 typo missing sending networks param for rhel guest network
2014-09-03 16:09:30 +01:00
keithchambers
1f93582131
Fixed typo: hostnamectl vs. homenamectl
2014-09-02 21:55:33 -07:00
Mitchell Hashimoto
41f4ec1e4d
guests/redhat: set hostname on EL7 [GH-4352]
2014-08-31 09:58:12 -07:00
Mitchell Hashimoto
f4ee4764bb
guests/redhat: configure networks properly on EL7 [GH-4195]
2014-08-30 22:49:13 -07:00
Mitchell Hashimoto
6074a63683
guests/redhat: install Docker on EL7 properly [GH-4402]
2014-08-30 22:44:48 -07:00
Salimane Adjao Moustapha
dd74a82d56
avahi not needed
2014-06-23 17:17:54 +02:00
Salimane Adjao Moustapha
b96dc972e0
install rpc package while installing nfs client on centos guests
2014-06-23 14:56:10 +02:00
Kalman Hazins
bb052366f7
Change symbols inside hashes to 1.9 JSON-like syntax
2014-05-22 12:35:12 -04:00
Mitchell Hashimoto
e7a5dc4f8e
Revert "Merge pull request #3643 from cammoraton/rhel7-plugin-fixes"
...
This reverts commit 919d0b9f4b
, reversing
changes made to 924c47feb3
.
2014-05-06 13:26:44 -07:00
cammoraton
6d6282f1be
Finished up fixes. Removed some artifacts.
2014-05-06 08:48:01 -04:00
cammoraton
5345c1479a
Fix configure networks and templates to work off polled interface names.
2014-05-06 08:44:36 -04:00
cammoraton
6ff81dc29c
Add interfaces_list capability to get list of interfaces via biosdevname
...
or dmesg parsing.
2014-05-06 08:44:15 -04:00
Mitchell Hashimoto
cae4a1c554
guests/redhat: force remove files so it works with pty
2014-03-05 16:22:55 -08:00
Teemu Matilainen
ee2ae94c25
synced_folders/rsync: Install `rsync` on guest if needed
...
Add new `rsync_installed` and `rsync_install` guest capabilities
to detect and install `rsync`.
Also copy `rsync_pre` capability to all Unix guests.
2014-01-31 02:12:57 -03:00
Teemu Matilainen
e979b84d36
synced_folders/nfs: Register `nfs_client_install` caps to correct distros
2014-01-15 23:37:02 -03:00