scaleway / scaleway-cli

Command Line Interface for Scaleway

Home Page:https://www.scaleway.com/en/cli/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support @file on _userdata update

bchatelard opened this issue · comments

Support @file on _userdata update

Hi @bchatelard,

@file is already supported,

./scw _userdata 8cc2d32c-5444-4998-81e9-964134700ba7 CLOUD-INIT=@cloud-init.yml
./scw _userdata 8cc2d32c-5444-4998-81e9-964134700ba7 CLOUD-INIT
#cloud-config

hostname: "coreos"

coreos:
  units:
    - name: runcmd.service
      command: start
      content: |
        [Unit]
        Description=Mark as booted

        [Service]
        Type=oneshot
        ExecStart=/bin/sh -c "curl http://169.254.42.42/state -X PATCH -d '{\"state_detail\": \"booted\"}' -H 'Content-Type: application/json'"

@bchatelard tested with @~/path/to/file

Fixed with the PR #332