Skip to content

Commit

Permalink
Added sysctl vm.max_map_count for elastic search and activated open-v…
Browse files Browse the repository at this point in the history
…m-tools
  • Loading branch information
Chris Callanan committed Sep 5, 2017
1 parent 5026d0a commit a9892bb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION = 0.0.1-beta2
VERSION = 0.0.1-beta3
VERSION_INFO_FILE = ./version-info.go

BIN_DIRECTORY = _bin
Expand Down
2 changes: 1 addition & 1 deletion application.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (app *Application) Initialize() error {
viper.BindEnv("MCP_VLAN_ID", "network.vlan_id")

viper.SetConfigType("yaml")

viper.SetConfigName("cloud-config-server")
viper.AddConfigPath(".")
viper.AddConfigPath("/etc")
Expand Down
6 changes: 6 additions & 0 deletions cloud-config.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ func (app *Application) GenerateInnerCloudConfig(server compute.Server) (cloudCo
serializedCloudConfig, err = yaml.Marshal(gin.H{
"hostname": server.Name,
"rancher": gin.H{
"sysctl": gin.H{
"vm.max_map_count": 262144,
},
"network": gin.H{
"interfaces": gin.H{
"eth*": gin.H{"dhcp": false},
Expand All @@ -62,6 +65,9 @@ func (app *Application) GenerateInnerCloudConfig(server compute.Server) (cloudCo
},
},
},
"services_include": gin.H{
"open-vm-tools": true,
},
"services": gin.H{
"rancher-agent1": gin.H{
"image": app.RancherAgentVersion,
Expand Down

0 comments on commit a9892bb

Please sign in to comment.