Git Product home page Git Product logo

cbd-quickstart's People

Contributors

aszegedi avatar biharitomi avatar gergopapi2 avatar keyki avatar pdarvasi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cbd-quickstart's Issues

Sudo permissions not assigned on quickstart deployment to non-aws images

Hi,
I was going through the azure quickstart template for GA release 2.7.1, because some of my deployments were failing. Upon looking at https://github.com/hortonworks/cbd-quickstart/blob/2.7.1/azure/mainTemplate.json

I see that instead of using https://github.com/hortonworks/cbd-quickstart/blob/2.7.1/azure/install-cbd.sh in the azure subfolder, the install script extension is using https://github.com/hortonworks/cbd-quickstart/blob/2.7.1/install-and-start-cbd.sh from the main directory.

In the file, I see that the main() if loop does not have a function similar to aws_prepare_os_user() for assigning sudo permissions to non-aws deployments.

main() {
    init

    if [[ -d "${AWS_BIN_LOCATION}" ]]; then
        get_aws_metadata_profile
        aws_prepare_os_user
        : ${WAIT_HANDLE_URL:? required}
    else
        custom_data
    fi

    download_cbd
    download_cb_cli
    set_perm
    su $OS_USER -c "install_cbd"
}
aws_prepare_os_user() {
    mkdir -p /home/$OS_USER/.ssh
    cp /home/ec2-user/.ssh/authorized_keys /home/$OS_USER/.ssh/
    chown -R $OS_USER:$OS_USER /home/$OS_USER/.ssh
    service sshd reload
    echo "# This is generated by the Cloudbreak deployment's cloud-init script" >> /etc/sudoers.d/cloudbreak
    echo "cloudbreak ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/cloudbreak
}

I have created a PR from my fork as a potential fix with a non_aws_prepare_os_user function.

non_aws_prepare_os_user() {
    echo "# This is generated by the Cloudbreak deployment's cloud-init script" >> /etc/sudoers.d/cloudbreak
    echo "cloudbreak ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/cloudbreak
}

Will link the PR here, please see if this is a valid fix

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.