cbd-quickstart's People
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.