Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
setting mesos attributes for agent nodes (#2853)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitsh authored and jackfrancis committed May 3, 2018
1 parent a10b9d9 commit c124009
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions parts/dcos/bstrap/dcoscustomdata111.t
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ write_files:
owner: root
path: /opt/azure/dcos/diagnostics_fix.sh
permissions: '0744'
- path: /var/lib/dcos/mesos-slave-common
content: 'ATTRIBUTES_STR'
permissions: "0644"
owner: "root"
- content: 'PROVISION_STR'
path: /opt/azure/containers/provision.sh
permissions: "0744"
Expand Down
2 changes: 1 addition & 1 deletion pkg/acsengine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -2229,7 +2229,7 @@ func getDCOSAgentCustomNodeLabels(profile *api.AgentPoolProfile) string {
if len(profile.OSType) > 0 {
attrstring = fmt.Sprintf("MESOS_ATTRIBUTES=\"os:%s", profile.OSType)
} else {
attrstring = fmt.Sprintf("MESOS_ATTRIBUTES=\"os:linux")
attrstring = fmt.Sprintf("MESOS_ATTRIBUTES=\"os:%s", api.Linux)
}

if len(profile.Ports) > 0 {
Expand Down

0 comments on commit c124009

Please sign in to comment.