BeeGFSCluster.yaml [326:369]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                  - | 
                  - export managementnodeip=
                  - !GetAtt EC2InstanceManagementT2Node1.PrivateIp
                  - |+
                  
                  - | 
                    sudo wget https://github.com/aws-samples/cloudformation-beegfs-cluster/raw/main/script.sh 
                  - | 
                    sudo bash script.sh $managementnodeip $nodeid
                  - | 
                    echo $managementnodeip >> originp 
            6-Start-the-services: 
              command: !Join
                - ''
                - - |
                    #!/bin/bash -xe
                  - |
                    sudo systemctl start beegfs-mgmtd
                  - |
                    sudo systemctl start beegfs-meta
                  - |
                    sudo systemctl start beegfs-storage
    Properties:
      InstanceType: !Sub '${T1InstanceType}'
      ImageId: ami-07d02ee1eeb0c996c
      KeyName: !Sub '${SSHKeyName}'
      SubnetId: !Ref ParallelFileSystemV1Subnet
      SecurityGroupIds:
        - !Ref EC2SecurityGroup
      IamInstanceProfile: !Ref managementNodeInstanceProfile
      UserData: !Base64
        'Fn::Join':
          - ''
          - - |
              #!/bin/bash -xe
            - |
              sudo apt-get update -y
            - |
              sudo apt-get install -y python-pip
            - |
              sudo pip install https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.tar.gz
            - cfn-init -v
            - '         --stack '
            - !Ref 'AWS::StackName'
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



BeeGFSCluster.yaml [408:451]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                  - | 
                  - export managementnodeip=
                  - !GetAtt EC2InstanceManagementT2Node1.PrivateIp
                  - |+
                  
                  - | 
                    sudo wget https://github.com/aws-samples/cloudformation-beegfs-cluster/raw/main/script.sh 
                  - | 
                    sudo bash script.sh $managementnodeip $nodeid
                  - | 
                    echo $managementnodeip >> originp
            6-Start-the-services: 
              command: !Join
                - ''
                - - |
                    #!/bin/bash -xe
                  - |
                    sudo systemctl start beegfs-mgmtd
                  - |
                    sudo systemctl start beegfs-meta
                  - |
                    sudo systemctl start beegfs-storage
    Properties:
      InstanceType: !Sub '${T1InstanceType}'
      ImageId: ami-07d02ee1eeb0c996c
      KeyName: !Sub '${SSHKeyName}'
      SubnetId: !Ref ParallelFileSystemV1Subnet
      SecurityGroupIds:
        - !Ref EC2SecurityGroup
      IamInstanceProfile: !Ref managementNodeInstanceProfile
      UserData: !Base64
        'Fn::Join':
          - ''
          - - |
              #!/bin/bash -xe
            - |
              sudo apt-get update -y
            - |
              sudo apt-get install -y python-pip
            - |
              sudo pip install https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.tar.gz
            - cfn-init -v
            - '         --stack '
            - !Ref 'AWS::StackName'
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



