// Copyright 2016, EMC, Inc.

'use strict';

module.exports = {
    friendlyName: 'Bootstrap Rancher',
    injectableName: 'Task.Linux.Bootstrap.Rancher',
    implementsTask: 'Task.Base.Linux.Bootstrap',
    options: {
        kernelFile: 'vmlinuz-1.0.2-rancher',
        initrdFile: 'initrd-1.0.2-rancher',
        kernelUri: '{{ file.server }}/common/{{ options.kernelFile }}',
        initrdUri: '{{ file.server }}/common/{{ options.initrdFile }}',
        profile: 'rancherOS.ipxe',
        comport: 'ttyS0'
    },
    properties: {
        os: {
            linux: {
                distribution: 'rancher',
                release: '1.0.2',
                Linux: '4.9.30'
            }
        }
    }
};

// Copyright 2016, EMC, Inc.

'use strict';

module.exports = {
    friendlyName: 'Bootstrap Rancher',
    injectableName: 'Task.Linux.Bootstrap.Rancher',
    implementsTask: 'Task.Base.Linux.Bootstrap',
    options: {
        kernelFile: 'vmlinuz-1.0.2-rancher',
        initrdFile: 'initrd-1.0.2-rancher',
        dockerFile: 'discovery.docker.tar.xz',
        kernelUri: '{{ file.server }}/common/{{ options.kernelFile }}',
        initrdUri: '{{ file.server }}/common/{{ options.initrdFile }}',
        dockerUri: '{{ file.server }}/common/{{ options.dockerFile }}',
        profile: 'rancherOS.ipxe',
        comport: 'ttyS0'
    },
    properties: {
        os: {
            linux: {
                distribution: 'rancher',
                release: '1.0.2',
                Linux: '4.9.30'
            }
        }
    }
};

add dockerFile and dockerUri to bootstrap-rancher (#577)