To check if you are on scaleway:

    $ test -f /run/oc-metadata.cache; echo $?
    0

This file is populated when something fetches the api metadata.

Our initrd (https://github.com/scaleway/initrd/tree/master/Linux) will create 
this file on each boots automatically.
-- 
https://code.launchpad.net/~edouardb/cloud-init/scaleway-datasource/+merge/274861
Your team cloud init development team is requested to review the proposed merge 
of lp:~edouardb/cloud-init/scaleway-datasource into lp:cloud-init.

_______________________________________________
Mailing list: https://launchpad.net/~cloud-init-dev
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~cloud-init-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to