← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1666446] [NEW] Create directory

 

Public bug reported:

Cloud-init has writefiles, but it looks like it does not have the
capability to create directories.

how is mixing

runcmd:
 - mkdir /home/toto/bin

and

write_files:
 - content: |
        #!/bin/sh
        echo "Hello world!"

    path: /home/toto/bin/hw.sh
    permissions: '0755'

going to work ?

Is runcmd garanteed to happen before write_files ?
What about a "users" section ?

This is the same kind of problem that is reported here:
https://bugs.launchpad.net/cloud-init/+bug/1486113

** Affects: cloud-init
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1666446

Title:
  Create directory

Status in cloud-init:
  New

Bug description:
  Cloud-init has writefiles, but it looks like it does not have the
  capability to create directories.

  how is mixing

  runcmd:
   - mkdir /home/toto/bin

  and

  write_files:
   - content: |
          #!/bin/sh
          echo "Hello world!"

      path: /home/toto/bin/hw.sh
      permissions: '0755'

  going to work ?

  Is runcmd garanteed to happen before write_files ?
  What about a "users" section ?

  This is the same kind of problem that is reported here:
  https://bugs.launchpad.net/cloud-init/+bug/1486113

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1666446/+subscriptions


Follow ups