k3s/cluster/vagrant
Filipe Brandenburger 54b2ed0078 Suppress non-error output of `systemctl enable`
The `systemctl enable` command ordinarily prints the `ln` command used
to enable the unit to stderr, but that's not ideal in the vagrant setup
because it gets printed in red, which should be reserved for errors, but
it's not a real error.

Set an environment variable to raise the log level to prevent `info`
messages from being printed to stderr (as they are not actually errors.)

I looked into the `systemctl` calls happening from the Salt setup script
to understand why they were not going to stderr, and it turns out the
Salt script will redirect all messages to stdout so they will all be
green regardless...

Tested:
- Started a fresh Vagrant cluster, confirmed no red messages in output
  when creating the cluster successfully. Successfully started nginx
  through Kubernetes using cluster/kubecfg.sh.
- Confirmed that the salt-api service was up after `vagrant up`:
  $ vagrant ssh master -c 'systemctl status salt-api.service'
  salt-api.service - The Salt API
     Loaded: loaded (/usr/lib/systemd/system/salt-api.service; enabled)
     Active: active (running) since Fri 2014-08-29 23:19:47 UTC; 11min ago
   Main PID: 2090 (salt-api)
     CGroup: /system.slice/salt-api.service
             +-2090 /usr/bin/python /usr/bin/salt-api
             +-2110 /usr/bin/python /usr/bin/salt-api

Signed-off-by: Filipe Brandenburger <filbranden@google.com>
2014-08-29 16:44:05 -07:00
..
config-default.sh Fix logic errors in validate cluster and make it work for vagrant again 2014-08-21 10:58:09 -04:00
config-test.sh Initial vagrant setup and e2e testing support 2014-07-24 16:32:36 -04:00
pod-ip-test.sh add test to check minion to master reachability; logfiling and some cosmetification. 2014-08-26 12:52:02 -07:00
provision-config.sh apiserver listen on 0.0.0.0 in vagrant 2014-08-14 10:02:04 -04:00
provision-master.sh Suppress non-error output of `systemctl enable` 2014-08-29 16:44:05 -07:00
provision-minion.sh Remove workaround for salt-minion startup in vagrant/provision-minion.sh 2014-08-29 08:50:10 -07:00
provision-network.sh add ip per pod across vagrant minions 2014-08-26 11:29:35 -07:00
util.sh Fix logic errors in validate cluster and make it work for vagrant again 2014-08-21 10:58:09 -04:00