Граф коммитов

58 Коммитов

Автор SHA1 Сообщение Дата
Eric Wiseblatt 5f72560488 Dont update gcloud on boot 2017-02-17 04:20:03 +00:00
Eric Wiseblatt 33bbea849e Install scripts for monitoring support. 2017-02-13 19:18:29 +00:00
Steven Kim 4b7fea14e9 Get GCR service account email via metadata server. 2016-12-15 21:52:48 +00:00
Lars Wander 083dd1500f (google) first boot & codelab image installs apt fix (#1277) 2016-11-01 09:15:06 -04:00
Steven Kim d4e5210eb3 adds confdef/confold flags to dist-upgrade 2016-10-26 21:32:52 +00:00
Steven Kim a41b97b82e Run apt-get update non-interactively as well 2016-10-26 20:27:45 +00:00
Lars Wander 8241f8b14e (kubernetes) fix result of `attempt_write_kube_credentials` (#1256) 2016-10-20 10:47:11 -04:00
Lars Wander 07e201b6ec (kubernetes) provide first_google_boot with kube_config (#1239)
If the contents of your `~/.kube/config` file are passed as the instance
metadata parameter `kube_config`, and you do not specify the GKE cluster you
wish to manage with `kube_cluster`, that file's contents will be used as the
credentials to manage your kubernetes cluster with Spinnaker.
2016-10-19 16:24:03 -04:00
Eric Wiseblatt 726744391c Add environment variable references to spinnaker.yml that were introduced by default-spinnaker-local (#1237)
default-spinnaker-local added a number of environment variables for provider configuration.
These are set in /etc/default/spinnaker. When we dont use a spinnaker-local, these dont get
picked up (from spinnaker.yml) so are ignored. Here we introduce the default environment
variable bindings in the spinnaker.yml itself.

Some additional variables are added that first_google_boot writes out.
2016-10-14 09:48:50 -04:00
Eric Wiseblatt 8e50b91c20 Dont transform spinnaker-local on first_google_boot anymore. (#1199)
Also updated spinnaker.yml with changes to default-spinnaker-local
so we can get rid of it.
2016-10-05 11:53:51 -04:00
Lars Wander cceae07d99 (consul) fix install bugs, and add rosco config section (#1198) 2016-10-04 17:14:13 -04:00
Lars Wander e2b7e265d6 (gcr) more reliable way of retrieving service account key (#1183) 2016-09-28 18:22:08 -04:00
Lars Wander b7639b4b6c (gcr) adjust search for gcr email to work on GCE VMs (#1181) 2016-09-28 17:03:22 -04:00
Lars Wander 4191c94f8b (kubernetes) allow zone & project for cluster to be specified (#1173) 2016-09-27 12:06:05 -04:00
Lars Wander fdd40c0c17 (gcr) simplify lookup of service account email (#1170)
If the user now provides "gcr_enabled" as instance metadata, but does not
supply an email address, the default compute service account is used.

Also the user can optionally provide which GCR registry to use.
2016-09-27 09:49:16 -04:00
Lars Wander 9758ea26c9 `export` is required to make env variable available to subprocesses (#1119) 2016-09-08 18:39:25 -04:00
Lars Wander 5e259ee05d manually set $HOME, and pin a gcloud version (#1118) 2016-09-08 17:55:15 -04:00
Lars Wander cdb95c7336 update gcloud in first_google_boot (#1117) 2016-09-08 17:07:03 -04:00
Lars Wander ea24c55420 (kubernetes) failed to query by zone and move credentials (#1116) 2016-09-08 14:13:12 -04:00
Lars Wander 06ce06d0fc (kubernetes): simplify install (#1110) 2016-09-08 11:29:15 -04:00
Lars Wander aefb28e2d4 (consul) default config (#1105) 2016-09-06 16:03:59 -04:00
Eric Wiseblatt 9a54e4d294 Add fiat 2016-09-03 03:38:47 +00:00
Eric Wiseblatt 12ae0c6d08 Fixed postInstall
postInstall is running in bourne shell, with built-in echo that doesnt support -e.
This was causing the config files to be malformed (containing -e) and preventing spinnaker
from running via upstart.

Also make first_google_boot resilient for configuring in the case when spinnaker could not start.
2016-08-25 13:48:14 +00:00
Eric Wiseblatt 22909244fd Allow InstallSpinnaker.sh to ommit cassandra (#1026)
When omitting cassandra, it will still add the package manager location
but will not actually install it. I can remove that too, but figured I'd
wait until we completely remove cassandra. In the meantime adding the location
will make it easier to manually install cassandra later should the deployer change
their mind.

The default behavior for GCP is to leave out cassandra. The other platforms are unchanged
for the time being. Adding a --noinstall_cassandra will force it off and --install_cassandra
will force it on.

Removed explicit cassandra (and redis) management entirely from developer mode (running from source).
To use cassandra from source, you'll need to ensure it is running yourself.
If it is an upstart service (as is normal) then it will already be running anyway.

I left the stop scripts in for now because I'm not sure if anyone is using the stop dependencies
script, but expect to remove this as well.
2016-07-28 14:20:59 -04:00
Eric Wiseblatt c2ce53f464 Automate removing cassandra (and bringing it back) 2016-06-24 16:11:22 +00:00
Matt Duftler 78225d1f15 Remove references to deprecated rush service. (#942) 2016-06-17 11:01:41 -04:00
Lars Wander 32995c61bf docker: Make GCR the default registry (#920)
@duftler PTAL
2016-06-03 11:04:09 -04:00
Lars Wander 5b7e092cfe docker & kubernetes: Update install scripts & config locations (#916) 2016-06-02 11:28:35 -04:00
Matt Duftler 4d8a2e0c78 Use noninteractive when performing dist-upgrade on startup. (#917) 2016-06-02 10:57:52 -04:00
Eric Wiseblatt c29afa82c5 Ignore empty metadata values 2016-03-25 19:26:14 +00:00
Eric Wiseblatt 4481c34493 Configure Kubernetes on GCE and fixed its config files. 2016-03-16 02:35:14 +00:00
Dongjoon Hyun f2ce753931 Fix typos in shell scripts and yml config files.
All typos except the following one are in comments.
```
-    primaryAccountName: service-default-primaryAcountName-not-defined
+    primaryAccountName: service-default-primaryAccountName-not-defined
```
It's a just sample value of config file.
2016-02-27 17:57:36 -08:00
Eric Wiseblatt fb3a1415c9 Fix race condition configuring on first boot
We perform a dist-upgrade in the boot for security reasons. This could take several minutes,
especially as the image grows stale and security patches grow. Before the upgrade occurred
at the beginning of the script meaning the guts of the script block on the upgrade completing.
Since spinnaker images typically auto upstart spinnaker on boot, that means that Spinnaker
is running during the upgrade but has not yet been configured as the VM was directed.

This CL moves the security upgrade to the end of the script so that the configuration
is properly in place.

One could argue that we should not run Spinnaker at all until the upgrade has finished.
Since it was already running, I'm not changing that policy. Also, this script is an
explicit choice passed into the VM so is not actually forced as a condition for using
spinnaker. It is used by C2D (and other adhoc VM creation techniques), which is
user-interactive introduction so I'd argue a timely boot is more important.

Otherwise, the "start spinnaker" call should be moved to the very end of the script.
I added a control parameter to allow this change, though would be happy to remove it
in favor of requiring either one of the policies.

Another speedup here is that I remove old kernels from the image we are building.
This is another "not sure if I should" decision, but think it makes sense. The
source images seem to include two kernels on them. It is standard practice to have
two kernels so that there is a fallback in case the upgrade fails. However since we
are baking and testing these images, and they are going to boot as is, I dont expect
anyone to ever boot off the older image and if there is a problem with the kernel, then
we should pick that up before releasing the image. The dist-upgrade seems to be doing
work for each of the kernels, so removing the old kernel knocks at least 45 seconds off
startup for the rebuild step, plus whatever other download and update work was needed
prior to that.

Finally, I noticed that the packer source image was old so I updated it. This might have
been adding additional time from being a further out delta to upgrade from. I changed the
wrapper script to inject the current version as the source image so things should generally
stay up to date when following standard processes using the provided scripts.

Unfortunately packer is based on JSON and JSON does not support comments so I couldnt
what's going on in the packer script. I added a crude comment to the best of packer's
commenting support.
2016-02-08 21:36:04 +00:00
Eric Wiseblatt 396d24cd97 Try waiting for cassandra thrift before upgrading. 2016-01-26 00:40:57 +00:00
Eric Wiseblatt 94d681cba4 Dont fail if no config is provided. 2015-12-03 22:41:43 +00:00
Steven Kim 16014ac429 More info in comment around our apt-*s 2015-12-02 15:18:26 -05:00
Steven Kim 467b30b65d Adds apt-mark hold/unhold around doing apt-get updates 2015-12-01 15:27:50 -05:00
duftler a174b873e9 Always check if log dirs exist before starting services via spinnaker umbrella service.
Stop/start spinnaker instead of restart since restart seems not happy about a service that is not already running.
2015-11-20 14:25:37 -05:00
Eric Wiseblatt 1ef157853d Removed obsolete scripts. 2015-11-20 15:44:54 +00:00
duftler 0777fadf4c Fix incorrect config prop names:
s/SPINNAKER_GOOGLE_PROJECT_DEFAULT_REGION/SPINNAKER_GOOGLE_DEFAULT_REGION
  s/SPINNAKER_GOOGLE_PROJECT_DEFAULT_ZONE/SPINNAKER_GOOGLE_DEFAULT_ZONE
Hardcode profile name in generated ~/.aws/credentials to [default].
Restart all of spinnaker after updating cassandra and reconfiguring spinnaker, instead of just restarting clouddriver.
2015-11-16 10:08:00 -05:00
Matt Duftler a57b08a907 Same thing, different day. 2015-11-16 04:31:20 -05:00
Matt Duftler 2a3b1d3b13 Redirect nodetool output to /dev/null. 2015-11-16 04:19:32 -05:00
Eric Wiseblatt dd2d03c196 retry nodetool 2015-11-16 09:01:06 +00:00
Eric Wiseblatt 495c7118e7 Wait for cassandra to come up before calling nodetool 2015-11-16 08:27:06 +00:00
Eric Wiseblatt 6eb5d9c522 Fix thrift after upgrades 2015-11-16 06:07:31 +00:00
Eric Wiseblatt c4a9091e40 fix cassandra after upgrade 2015-11-16 05:06:11 +00:00
Eric Wiseblatt 9467ec5797 Fixed what looks like merge error 2015-11-16 03:13:54 +00:00
Eric Wiseblatt a596972a66 Added transformation from old yaml to new yaml for click to deploy. 2015-11-16 02:05:50 +00:00
Eric Wiseblatt de25f576b8 Updated first_boot 2015-11-15 18:49:20 +00:00
Steven Kim d33c2d1e35 Restores osupdate when dependencies aren't specified 2015-11-13 23:58:32 +00:00