Commit Graph

1235 Commits

Author SHA1 Message Date
Daniel Imfeld 32d5c61779 Consolidate GCEMetadataClient into EnvGCEFingerprint
This allows easier reuse of the same client across multiple functions.
2015-10-05 13:13:25 -05:00
Daniel Imfeld a85dda68fe And add a comment to the constant. 2015-10-05 12:59:02 -05:00
Daniel Imfeld adbb23e267 Use a constant for the default GCE metadata URL 2015-10-05 12:57:45 -05:00
Daniel Imfeld 46bbfc3549 isAWS should return false on GCE
GCE and AWS both expose metadata servers, and GCE's 404 response
includes the URL in the content, which maatches the regex. So,
check the response code as well and if a 4xx code comes back,
take that to meanit's not AWS.
2015-10-05 00:42:34 -05:00
Daniel Imfeld a43a262e66 Fingerprinting code for GCE nodes
This reads the following:

* hostname
* instance id
* machine-type
* zone
* internal IP
* external IP (if any)
* tags
* attributes

Atributes are placed under the platform.gce.attr.* hierarchy.

Tags are set up as platform.gce.tag.TagName=true.
2015-10-05 00:40:43 -05:00
Armon Dadgar 32f4e9e401 scheduler: tasks updated should only check if number of dynamic ports is different 2015-10-04 15:53:02 -04:00
Ryan Uber b3f2fa7589 Merge pull request #211 from Carevoyance/website_typo
Fix website typo in jobs.html.md
2015-10-03 19:37:29 -07:00
Daniel Imfeld 2dbb421ac5 Typo: singel -> single 2015-10-03 21:33:41 -05:00
Kevin Fishner 9d4843c2fb Merge pull request #210 from hashicorp/vs-k8s
Update to versus section
2015-10-03 18:51:46 -04:00
Kevin Fishner 0117c5f5dd update description 2015-10-03 18:50:23 -04:00
Ryan Uber caeb9cfee8 Merge pull request #195 from errordeveloper/master
Clean-up provisioning output
2015-10-03 12:55:45 -07:00
Ilya Dmitrichenko f2f7dc4479 Clean-up provisioning output 2015-10-03 10:41:58 +01:00
Alex Dadgar 3fed4efb8d Merge pull request #206 from hashicorp/f-driver-envvars
Pass environment variables through to drivers
2015-10-02 17:54:52 -07:00
Alex Dadgar aeb400cd8a update test to reflect not uppercasing passed env vars 2015-10-02 17:49:18 -07:00
Antoine POPINEAU a03ce2b39c Removed capitalization of user-defined envvars. 2015-10-02 17:46:55 -07:00
Antoine POPINEAU 0e5adfb518 Updated website documentation. 2015-10-02 17:46:55 -07:00
Antoine POPINEAU 56944536fc Moved the envvars logic to TaskEnvironment and TaskEnvironmentVariables(). Added tests there. 2015-10-02 17:46:55 -07:00
Antoine POPINEAU 2c9cc76a7d Forgot to fix my test after testing it. 2015-10-02 17:46:55 -07:00
Antoine POPINEAU 722141bfa6 Added a jobspec directive to specify envvars. Updated Docker driver to use them accordingly. 2015-10-02 17:46:55 -07:00
Alex Dadgar 0c55f62393 Merge pull request #205 from hashicorp/b-default-link-speed
Add a default link speed
2015-10-02 17:39:08 -07:00
Alex Dadgar e60e6ff8f5 Add debug line when setting link speed to default 2015-10-02 17:32:17 -07:00
Alex Dadgar 4cc8588cb5 Merges 2015-10-02 17:32:11 -07:00
Ryan Uber b34c47064d Merge pull request #204 from hashicorp/b-options
Parse client options
2015-10-02 17:03:34 -07:00
Ryan Uber ccf217ce2e agent: test options config 2015-10-02 17:02:32 -07:00
Ryan Uber 30fa300825 Merge branch 'parse-client-options' of https://github.com/carlosdp/nomad into b-options 2015-10-02 16:58:05 -07:00
Alex Dadgar 2a8142db5c Merge pull request #202 from achanda/doc_fix
Fix network mode
2015-10-02 16:18:23 -07:00
Abhishek Chanda f3cc677527 Fix network mode
net is not a valid network mode
2015-10-02 16:11:38 -07:00
Chris Bednarski 8d0f06777c Merge pull request #200 from legal90/f-parallels
Add support of Parallels Desktop for Mac
2015-10-02 11:46:02 -07:00
Mikhail Zholobov 1bd8f27bd7 Add support of Parallels Desktop for Mac 2015-10-02 11:40:24 -07:00
Chris Bednarski 687bc2f611 Change to pre-release version 2015-10-02 11:30:44 -07:00
Alex Dadgar faf8002d2d go-fmt 2015-10-02 10:54:04 -07:00
Alex Dadgar 0c7f3e21d7 Merge pull request #199 from achanda/double_call
Fix two issues where settings were not taking effect
2015-10-02 10:52:41 -07:00
Abhishek Chanda 3751b46673 Make sure createHostConfig is called only once
The second call discards any mods to port binding or
network type

Fixes #185 and #196
2015-10-02 10:43:37 -07:00
Alex Dadgar 74f2bf28d2 Merge pull request #189 from apognu/dev/net-fingerprint
Fingerprint: config parameter for interface and native method for IP address
2015-10-02 08:56:04 -07:00
Antoine POPINEAU f35ebe14ad Merge branch 'master' into dev/net-fingerprint 2015-10-02 09:38:35 +02:00
Antoine POPINEAU 36daef1625 Renamed all instances of `Iface` to `NetworkInterface`. 2015-10-02 09:29:18 +02:00
Alex Dadgar 191ea91cdd Merge pull request #184 from achanda/docker_net
Enable setting networking mode for docker
2015-10-01 19:32:48 -07:00
Alex Dadgar 98209eb019 Merge pull request #192 from hashicorp/f-client-agent-cmdline
Fix anchor links and add new agent cli commands
2015-10-01 19:29:27 -07:00
Alex Dadgar 1a255a8acc Fix anchor links and add new agent cli commands 2015-10-01 19:28:21 -07:00
Abhishek Chanda 0cb649bd5f Enable setting networking mode for docker
This patch enables setting networking mode for the docker
driver. This does not handle the `container` mode.
Closes #175
2015-10-01 18:52:41 -07:00
Alex Dadgar 7cda3b0db3 Merge pull request #191 from hashicorp/f-client-agent-cmdline
Add parsing of client configuration from the commandline
2015-10-01 17:29:31 -07:00
Alex Dadgar cc85859ccd Don't enfoce that the agent can't be run as both server and client 2015-10-01 17:27:36 -07:00
Alex Dadgar 4c9f2fd6a7 Use the known size of meta to initialize the map 2015-10-01 17:21:32 -07:00
Alex Dadgar 9d5f96fb4f Move declerations to top and use SplitN to be more flexible for Meta values 2015-10-01 17:19:52 -07:00
Alex Dadgar 3345a951d2 Add parsing of client configuration from the commandline 2015-10-01 16:46:42 -07:00
Mitchell Hashimoto 245cfd2dbf Merge pull request #190 from hashicorp/docker-brand-guidelines
website: update docker logo to adhere to brand guidelines
2015-10-01 16:51:54 -04:00
Jack Pearkes 38f3f2cda5 website: update docker logo to adhere to brand guidelines
![](https://dl.dropboxusercontent.com/s/p60yujlru03d53v/2015-10-01%20at%201.44%20PM.png)

https://www.docker.com/brand-guidelines
2015-10-01 13:44:58 -07:00
Antoine POPINEAU 3a4b304a53 Refactored code. 2015-10-01 21:16:39 +02:00
Alex Dadgar d86e2187b6 Merge pull request #188 from diptanu/master
Upgrading to Go 1.5.1 for building Nomad in developer VM
2015-10-01 11:40:12 -07:00
Antoine POPINEAU 2e1488fb04 Comment some undocumented code. 2015-10-01 20:39:10 +02:00