Commit Graph

41 Commits

Author SHA1 Message Date
vishalnayak
6b83d07070 VaultClient for Nomad Client 2016-08-24 09:43:45 -04:00
Alex Dadgar
4efecc01ea Pass Vault config to client 2016-08-17 16:23:29 -07:00
Diptanu Choudhury
6811e084f4 Merge pull request #1518 from pubnub/feature/chroot-map-rebase
Add config field to specify chroot mapping for exec driver
2016-08-10 17:00:03 -07:00
Jay Oster
1876fc2b10 Add config field to specify chroot mapping for exec driver
- Same format as used by the internal chroot mapping
- Map: source_path -> dest_path
- Example HCL:

client {
  chroot_env {
    "/etc" = "/etc"
    "/lib" = "/lib"
    "/opt/projects/foo/bin" = "/usr/bin"
  }
}
2016-08-03 17:17:17 -07:00
Diptanu Choudhury
3593649e18 Allow operators to opt into publishing node and alloc metrics 2016-08-01 19:52:20 -07:00
Sean Chittenden
7dc7fcf052 Create config.DefaultConsulConfig() 2016-06-16 20:41:05 -07:00
Sean Chittenden
f1a40c0deb Disambiguate auto_join from auto_register, rename reg to auto_advertise.
Provide an option that describes the value to the user vs the
operation performed by the software.  Momentarily introducing
`auto_join`
2016-06-14 12:11:38 -07:00
Alex Dadgar
020f8b05d3 only support latest and remove ring buffer 2016-06-12 09:32:38 -07:00
Sean Chittenden
bbf7348abc Bump the default Consul client timeout from 500ms to 5s.
Requsted by: @dadgar
2016-06-10 15:50:11 -04:00
Sean Chittenden
6785e7632c Provide a default ConsulConfig for client/config.DefaultConfig()
Change the unit test to only test if the consul link exists, not the
value of the link.  The old test was hostname specific and therefore
would always be different based on the environment running the tests.
2016-06-10 15:50:11 -04:00
Sean Chittenden
b9f230b7b2 Move client.DefaultConfig() to client/config.DefaultConfig()
Resolves an import cycle in testing and is more appropriate because
the default should reside next to its struct definition.
2016-06-10 15:50:11 -04:00
Sean Chittenden
d268dcb85d Reduce all forms of ConsulConfig down to a single struct
nomad/structs/config/consul.go's ConsulConfig is the canonical definition
for all things Consul now.
2016-06-10 15:50:11 -04:00
Sean Chittenden
4fed6b0ab5 Rename client/config/config's ConsulConfig to ConsulAgentConfig
A follow up commit to the previous rename.  More to come.
2016-06-10 15:48:36 -04:00
Sean Chittenden
0e1bdad2a0 Rename consul.ConsulConfig to consul.AgentConfig
There were two `ConsulConfig` structs running around, one of them
needed to go away.  Rely on the package's path to provide context
for the type of AgentConfig.
2016-06-10 15:48:36 -04:00
Diptanu Choudhury
bf6c034fec Making the stats collection interval and number of data points to keep in memory configurable 2016-05-28 19:59:20 -07:00
Sean Chittenden
29be52f762 Speling police 2016-05-15 09:41:34 -07:00
Diptanu Choudhury
8c5aa0fe65 Added some docs 2016-05-14 00:36:26 -07:00
Diptanu Choudhury
a2237a6057 Implemented registering client and server services 2016-05-11 16:07:02 -07:00
Alex Dadgar
a1ff98a69a swap raw_exec and qemu in the blacklist 2016-03-25 12:43:50 -07:00
Alex Dadgar
cd89a97529 Operator specifiable blacklist for task's using certain users 2016-03-24 10:55:14 -07:00
Alex Dadgar
4f923f14b9 Pass environment variables from host to exec based tasks 2016-03-23 13:01:45 -07:00
Alex Dadgar
b818379576 add nomad fingerprinter 2016-03-22 17:12:30 -07:00
Alex Dadgar
4293811651 reserve resources on the node 2016-03-13 19:05:41 -07:00
Diptanu Choudhury
7f8f6712c5 Adding version information to snapshots 2016-02-24 19:06:30 -08:00
Alex Dadgar
48de53aed1 Strip as much copystructure as possible 2016-02-10 17:54:43 -08:00
Alex Dadgar
5b3792a509 safe but slow 2016-02-10 13:44:53 -08:00
Diptanu Choudhury
70f7b2d70f Setting defaults for client max and min port 2016-02-08 13:29:53 -08:00
Diptanu Choudhury
2efdd83636 Using net.IsLoopback to determine if ifc is a loopback device 2016-02-08 07:57:31 -08:00
Diptanu Choudhury
f51e377f52 Reserving ports on windows 2016-02-05 15:17:15 -08:00
Alex Dadgar
9f44780f89 User specifiable kill timeout and operator configurable max 2015-12-22 16:10:30 -08:00
max
7ff03041d7 Client config option "fingerprint.whitelist" 2015-11-24 16:18:49 +01:00
Chris Bednarski
efa52ba42b Add missing param and error in the missing case so default will work as expected 2015-11-16 19:55:08 -08:00
Chris Bednarski
f7784209f4 Added config reader for booleans 2015-11-16 19:30:37 -08:00
Alex Dadgar
d8f3bd26e6 Merges 2015-10-02 17:32:11 -07:00
Antoine POPINEAU
256d390789 Renamed all instances of Iface to NetworkInterface. 2015-10-02 09:29:18 +02:00
Antoine POPINEAU
7fc3f83672 Client config param added to specify net iface to use for fingerprinting. Added a Golang-native method for determining the interface IP address. 2015-10-01 17:31:47 +02:00
Chris Bednarski
b4f7c305d4 Added test for config.Read and config.ReadDefault 2015-08-31 20:11:01 -07:00
Chris Bednarski
c57f0f4e8b Delete unused NewConfig function 2015-08-31 20:01:04 -07:00
Chris Bednarski
decbbb1730 Added ReadDefault for supreme laziness 2015-08-31 19:54:49 -07:00
Chris Bednarski
dc97c6df9e Added Config.Options so we can support arbitrary key-value configuration 2015-08-31 19:48:59 -07:00
Chris Bednarski
8f3713ddf9 We need a new package for this or we get a circular import between client and client/fingerprint 2015-08-25 16:13:33 -07:00