Amazon web services CoreOS云配置未创建用户

Amazon web services CoreOS云配置未创建用户,amazon-web-services,coreos,Amazon Web Services,Coreos,该模板不会生成我在云配置中设置的用户。我ssh到集群中,看到cat/etc/passwd,但没有看到那个用户。可能出了什么问题 { “AWSTemplateFormatVersion”:“2010-09-09”, “说明”:“EC2上的CoreOS:http://coreos.com/docs/running-coreos/cloud-providers/ec2/", “映射”:{ “区域地图”:{ “美国西部2号”:{ “AMI”:“AMI-06af7f66” } } }, “参数”:{ “

该模板不会生成我在云配置中设置的用户。我ssh到集群中,看到cat/etc/passwd,但没有看到那个用户。可能出了什么问题

{
“AWSTemplateFormatVersion”:“2010-09-09”,
“说明”:“EC2上的CoreOS:http://coreos.com/docs/running-coreos/cloud-providers/ec2/",
“映射”:{
“区域地图”:{
“美国西部2号”:{
“AMI”:“AMI-06af7f66”
}
}
},
“参数”:{
“InstanceType”:{
“说明”:“EC2 HVM实例类型(m3.medium等)。”,
“类型”:“字符串”,
“默认值”:“t2.small”,
“允许值”:[“t2.micro”、“m3.medium”、“i2.4xlarge”、“i2.8xlarge”、“r3.large”、“r3.xlarge”、“r3.2xlarge”、“r3.4xlarge”、“r3.8xlarge”、“t2.micro”、“t2.small”、“t2.medium”],
“ConstraintDescription”:“必须是有效的EC2 HVM实例类型。”
},
“myVPC”:{
“类型”:“AWS::EC2::VPC::Id”,
“Description”:“实例将部署到的VPC Id。”
},
“SecurityGroupId”:{
“类型”:“列表”,
“说明”:“要将实例启动到的安全组。”
},
“子网”:{
“类型”:“列表”,
“说明”:“要向其中启动实例的VPC组。”
},
“集群大小”:{
“默认值”:“3”,
“MinValue”:“3”,
“最大值”:“12”,
“说明”:“集群中的节点数(3-12)。”,
“类型”:“编号”
},
“发现者”:{
“描述”:“唯一的etcd群集发现URL。从https://discovery.etcd.io/new?size=",
“类型”:“字符串”
},
“广告地址”:{
“说明”:“如果您的etcd群集位于一个区域内,请使用“专用”;如果它跨越多个区域或云提供商,请使用“公用”。”,
“默认”:“专用”,
“允许值”:[“私有”、“公共”],
“类型”:“字符串”
},
“密钥对”:{
“Description”:“允许SSH访问实例的EC2密钥对的名称。”,
“类型”:“AWS::EC2::KeyPair::KeyName”
}
},
“资源”:{
“CoreOSServerAutoScale”:{
“类型”:“AWS::AutoScaling::AutoScalingGroup”,
“财产”:{
“LaunchConfigurationName”:{“Ref”:“CoreOSServerLaunchConfig”},
“VPCZoneIdentifier”:{“Ref”:“SubnetId”},
“MinSize”:“3”,
“最大尺寸”:“12”,
“DesiredCapacity”:{“Ref”:“ClusterSize”},
“标签”:[
{“Key”:“Name”,“Value”:{“Ref”:“AWS::StackName”},“PropagateAtLaunch”:true}
]
}
},
“CoreOSServerLaunchConfig”:{
“类型”:“AWS::AutoScaling::LaunchConfiguration”,
“财产”:{
“ImageId”:{“Fn::FindInMap”:[“RegionMap”,{“Ref”:“AWS::Region”},“AMI”]},
“InstanceType”:{“Ref”:“InstanceType”},
“KeyName”:{“Ref”:“KeyPair”},
“SecurityGroups”:{“Ref”:“SecurityGroupId”},
“UserData”:{“Fn::Base64”:
{“Fn::Join”:[“”[
“#云配置\n\n”,
“用户:\n”,
“-名称:竹\n”,
“组:\n”,
“-sudo\n”,
“-docker\n”,
“-fleet\n”,
“-systemd\n”,
“-wheel\n”,
“-竹\n”,
“ssh授权密钥:\n”,
3.3.6 GGvv6 6 GGGGGG8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 2orehxNuoocquettcywnkaTI+Y/VGGXSCMIQWVOY4AFG2NL0MQ1MNFW3DDDQJVBcmbuild@bamboo_agent_fleetctl\n“,
“coreos:\n”,
“etcd2:\n”,
“发现:”,{“Ref”:“发现URL”},“\n”,
“播发客户端URL:http://$”,{“Ref”:“AdvertisedIPAddress”},“\u ipv4:2379\n”,
“初始播发对等URL:http://$”,{“Ref”:“AdvertisedIPAddress”},“\u ipv4:2380\n”,
“侦听客户端URL:http://0.0.0.0:2379,http://0.0.0.0:4001\n“,
“侦听对等URL:http://$”,{“Ref”:“AdvertisedIPAddress”},“\u ipv4:2380\n”,
“单位:\n”,
“-name:etcd2.service\n”,
“命令:开始\n”,
“-名称:舰队。服务\n”,
“命令:开始\n”
] ]
}
}
}
}
}

}
要回答您的实际问题,您可以使用

您还可以使用或在coreos机器上运行
coreos cloudinit-validate
来验证云配置

然而,看看您的配置,您似乎已经过度缩进了

以下方面应起作用:

#cloud-config
users:
  - name: bamboo
    groups:
      - sudo
      - docker
      - fleet
      - systemd
      - wheel
      - bamboo
    ssh-authorized-keys:
      - ssh-rsa <RSA Public Key> cmbuild@bamboo_agent_fleetctl 
coreos:
  etcd2:
    discovery:  {Ref":DiscoveryURL" },
    advertise-client-urls: http://$ {Ref":AdvertisedIPAddress" },_ipv4:2379
    initial-advertise-peer-urls: http://$ {Ref":AdvertisedIPAddress" },_ipv4:2380
    listen-client-urls: http://0.0.0.0:2379,http://0.0.0.0:4001
    listen-peer-urls: http://$ {Ref":AdvertisedIPAddress" },_ipv4:2380
  units:
    - name: etcd2.service
      command: start
    - name: fleet.service
      command: start
#云配置
用户:
-名称:竹
组:
-苏多
-码头工人
-舰队
-系统的
-车轮
-竹子
ssh授权密钥:
-ssh-rsacmbuild@bamboo_agent_fleetctl 
科雷奥斯:
etcd2:
发现