kubernetes/cluster
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
..
azure Add salt configuration for openvpn for use on Azure. 2014-08-25 14:56:54 -07:00
gce Move healthz checking to cluster validation. Switch to code == 200 2014-08-20 15:52:29 -07:00
local Add local scripts, simplify kubecfg.sh 2014-08-11 13:02:52 -04:00
rackspace Add Rackspace support for dev-build-and-up 2014-08-28 10:36:58 -05:00
saltbase Make salt configs work with Jinja 2.6. 2014-08-28 16:54:14 -07:00
templates Please set up SaltStack using SSL. MITM is a thing these days. 2014-08-18 00:10:43 -07:00
vagrant Suppress non-error output of systemctl enable 2014-08-29 16:44:05 -07:00
vsphere Rename output/ directory to _output/ 2014-08-29 14:44:55 -07:00
kube-down.sh Initial vagrant setup and e2e testing support 2014-07-24 16:32:36 -04:00
kube-env.sh Deploy k8s to vSphere 2014-08-24 20:27:05 -07:00
kube-push.sh Add some initial validation logic. 2014-07-29 07:51:40 -07:00
kube-up.sh Add some initial validation logic. 2014-07-29 07:51:40 -07:00
kube-util.sh Fix logic errors in validate cluster and make it work for vagrant again 2014-08-21 10:58:09 -04:00
kubecfg.sh Rename output/ directory to _output/ 2014-08-29 14:44:55 -07:00
validate-cluster.sh Fixed kubelet /healthz by using healthz package 2014-08-28 15:34:39 -07:00