Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Rework the getting-started sections of the docs. #1826
Conversation
mitechie
added some commits
May 2, 2017
|
Added the start of an install doc but honestly I think that the reference-releases doc is really just an install doc like this. Maybe the best thing to do is to combine the two into a single reference-install.html and garden the two together. |
evilnick
requested changes
May 5, 2017
I haven't finished! i thought I would give you something to look at though
| + | ||
| +# Getting started with Juju and LXD | ||
| + | ||
| +[LXD](lxd-upstream) provides an amazing experience using machine containers to be able to |
evilnick
May 5, 2017
Member
This first sentence seems to conflate a number of things and is difficult to grasp. I would suggest something like
You may already know that [LXD] provides an amazing experience for managing lightweight containers. Juju can make use of LXD to provide a cloud-like experience from your local machine - etc etc
Possibly a short bullet list of why you would use it. We don't want to be too wordy in the beginning
mitechie
May 8, 2017
Owner
Reworded, thanks for suggestion. I like the phrase "cloud-like experience" in particular.
| +clouds. Using LXD as a method to test, verify, and replicate complex software | ||
| +deployments is a powerful tool that every Juju user needs. These instructions | ||
| +will get you up and running and deliver the best-possible experience with | ||
| +Juju. At the moment, that means using the latest release of Ubuntu with '[Long |
evilnick
May 5, 2017
Member
Sometimes the markdown parser can choke on links with linebreaks in them. It is pretty much always better to begin a new line for long links, so:
'[Long Term Support][long-term-support]' (LTS):
[16.04 LTS (Xenial)][Xenial-download]
| +Term Support][long-term-support]' (LTS): [16.04 LTS | ||
| + (Xenial)][Xenial-download]. | ||
| + | ||
| +Our system will need the following: |
evilnick
May 5, 2017
Member
change of POV. We usually use 'you/your' apart from exceptional cases (e.g. some example charms, which are 'ours')
So, 'Your system will also need the following:'
| + | ||
| + | ||
| +```bash | ||
| +sudo snap install --classic juju |
evilnick
May 5, 2017
Member
we don't need to install Juju. This is a tutorial on setting up LXD for use with Juju. I think at some point we have to assume that people have actually installed Juju, either from 'getting started or the install page'. We do still need to install lxd and zfsutils-linux though.
Perhaps this could be solved simply by supplying a link to install the Juju client in the paragraph above?
mitechie
May 8, 2017
Owner
Since lxd is only going to be ubuntu based atm and we do have the install docs link above I figured that it was safe enough to include here for the sake of completeness.
evilnick
May 9, 2017
Member
yeah, but that's how we end up with install instructions on every page. I'm happy to remind people they need to have Juju installed, and link them to were to do it. But we also have to think of how they ended up on this page - this is no longer 'getting started', but a tutorial of something useful you can do with Juju.
| + | ||
| +```bash | ||
| +sudo snap install --classic juju | ||
| +sudo apt install juju lxd zfsutils-linux |
evilnick
May 5, 2017
Member
no longer needs Juju. Also, since we no longer have the ppa line, we should sudo apt update before running this
| + | ||
| +You will be asked several questions to configure LXD for use. Pressing Enter | ||
| +will accept the default answer (provided in square brackets). Only one answer, | ||
| +the size of the loop device in the below example, uses a non-default value. |
evilnick
May 5, 2017
Member
I don't know if it is worth mentioning, but the default value for the loop device size is now dynamic (it is based on a % of storage available). I think it probably isn't worth it, but what do you think?
|
Thanks for the review. I've updated based on comments and asked a couple of questions in the review points. |
mitechie
referenced this pull request
May 8, 2017
Closed
Replace ppa install instructions with snap #1833
| +### Centos and other Linuxes | ||
| + | ||
| + | ||
| +Spans enable installing the the Juju client on an array of Linux |
| +The Juju team regularly puts out alpha, beta, and RC releases during a | ||
| +development cycle. We encourage users to please test these versions out with | ||
| +their workloads and use cases and [file bugs][bugs] if you hit any issues. | ||
| +Remember that while in development feedback on usability and missing |
| +wrong, but also for things that have an opportunity to be "more right". | ||
| + | ||
| + | ||
| +## Ubuntu |
| +## Ubuntu | ||
| + | ||
| +It is possible to install other versions, including beta releases of | ||
| +Juju via a snap package. See the [install page][install] for more information. |
| +``` | ||
| + | ||
| + | ||
| +## macOS |
| + | ||
| + | ||
| + | ||
| +## Windows |
| + | ||
| + | ||
| + | ||
| +# Building from source |
| + | ||
| + | ||
| +```bash | ||
| +sudo snap install --classic juju |
evilnick
May 5, 2017
Member
we don't need to install Juju. This is a tutorial on setting up LXD for use with Juju. I think at some point we have to assume that people have actually installed Juju, either from 'getting started or the install page'. We do still need to install lxd and zfsutils-linux though.
Perhaps this could be solved simply by supplying a link to install the Juju client in the paragraph above?
mitechie
May 8, 2017
Owner
Since lxd is only going to be ubuntu based atm and we do have the install docs link above I figured that it was safe enough to include here for the sake of completeness.
evilnick
May 9, 2017
Member
yeah, but that's how we end up with install instructions on every page. I'm happy to remind people they need to have Juju installed, and link them to were to do it. But we also have to think of how they ended up on this page - this is no longer 'getting started', but a tutorial of something useful you can do with Juju.
| + | ||
| +## Next Steps | ||
| + | ||
| +Now that you have a Juju-powered cloud, it is time to explore the amazing |
evilnick
May 9, 2017
Member
I think this should also be updated to reflect that this is no longer 'getting-started' . Perhaps something like
Now that you have configured Juju to work with LXD images, you can test, tweak, develop and experiment with Juju charms rapidly, easily and without additional costs.
or similar
|
Thanks, I've updated per the latest review comments. |
evilnick
requested a review
from
degville
May 9, 2017
|
Thanks for the speedy updates. I'd also like @degville to have a look over this in case there are bits I missed |
degville
requested changes
May 9, 2017
Thanks for these updates @mitechie. I've left a few of my own comments inline, mostly referencing getting-started.md.
| +will process all of the events that occur. These instructions will walk you | ||
| +through using the hosted Juju as a Service (JAAS) controller and requires you | ||
| +to have public cloud credentials ready. If you'd prefer to test it out | ||
| +locally, we've got a tutorial on setting up a [LXD based controller over |
degville
May 9, 2017
Collaborator
'over here' sounds a little too casual to me, although I appreciate you're trying to be less formal. We'd normally write something more like see our _Getting started with Juju and LXD_ guide further details.
| -```no-highlight | ||
| -Use --refresh flag with this command to see the latest information. | ||
| +When you have selected a charm or bundle (hint: to see how easy JAAS makes | ||
| +complex deployments, try the Canonical Kubernetes bundle!) it can be added |
degville
May 9, 2017
Collaborator
I think we should add a link to https://jujucharms.com/canonical-kubernetes/
| -Use --refresh flag with this command to see the latest information. | ||
| +When you have selected a charm or bundle (hint: to see how easy JAAS makes | ||
| +complex deployments, try the Canonical Kubernetes bundle!) it can be added | ||
| +to your model by pressing the 'Add to model' button... |
| +## Use the command line | ||
| + | ||
| +Juju can also be used from the command line. Models you've created in JAAS are | ||
| +also able to be operated against via the CLI and vice versa. In order to use |
degville
May 9, 2017
Collaborator
this sounds clunky to me. How about, Models created with JAAS can also be operated on from the CLI, and vice versa - models created on the CLI can be modified by the GUI.
| +Click on the sections below for the relevant instructions or visit the | ||
| +[install instructions][install] for a thorough run down of your options. | ||
| + | ||
| +To most quickly get started pick your OS from below. |
| + | ||
| + sudo snap install juju --classic | ||
| + | ||
| + You can check which version of Juju you have installed with |
| + | ||
| +## Register or login to JAAS | ||
| + | ||
| +To connect to JAAS from the command line you'll need to login. Enter the following command: |
degville
May 9, 2017
Collaborator
on the command line, login could be ambiguous. How about authenticate the CLI against JAAS with the following command:
| +After successful authentication, you will be asked to enter a descriptive name | ||
| +for the JAAS controller (we suggest JAAS). Now you can operate your models or | ||
| +applications in JAAS from the command line. You can see a list of all of your | ||
| +controllers using the cli command: |
| +hours of looking up config options or wrestling with install scripts! | ||
| + | ||
| +To discover more about what Juju can do for you, we suggest some of the | ||
| +following pages of documentation |
| sudo snap install juju --classic | ||
| - You can check which version of Juju you have installed with | ||
| + You can check which version of Juju you have installed with |
|
Pushed an update addressing the changes requested by @degville |
| -the command line, you will first need to install the Juju client software on | ||
| -your machine. | ||
| +Juju can also be used from the command line. Models you've created with the | ||
| +JAAS website can also able to be operated via the normal Juju command line. In |
| @@ -251,7 +253,8 @@ output. | ||
| After successful authentication, you will be asked to enter a descriptive name | ||
| for the JAAS controller (we suggest JAAS). Now you can operate your models or | ||
| applications in JAAS from the command line. You can see a list of all of your | ||
| -controllers using the cli command: | ||
| +controllers using the command line command: |
|
Updated, ty for the reviews. Please let me know if there's anything else that catches your eyes. |
|
This looks okay now, but we will have to sort out the navigation due to pages removed/moved. Do you want to do that here? |
|
Ah, that's a good point. I'd not looked at the nav setup. Might as well do it here to test it out and make sure it all works with the changes/file moves here. I'll update shortly. |
|
Cool. You'll find the 'navigation.tpl' in the src folder. It's just html so reasonably straightforward |
|
Is the nav.txt in the tools still used? |
mitechie
added some commits
May 10, 2017
|
I've updated the nav, corrected merge conflicts with the branch from upstream, and fixed a couple of links. |
|
@evilnick I'm hitting https://www.bountysource.com/issues/36261101-python-3-syntaxerror-from-long-literal-0x950412del-in-po-msgfmt-py trying to get the linkchecker installed and test out the links. Can you run it and let me know what needs to be corrected? I'm assume I've got to have missed something in the changes. |
| <!-- SECTION --> | ||
| - <li class="section"><h4 class="header toggle-target">Get Started</h4> | ||
| + <li class="section"><h4 class="header toggle-target">Quick Guides</h4> |
evilnick
May 10, 2017
Member
Why change the name of the get started section? I realise that this now incorporates more tutorial elements, but I think changing both the name of the section and the name of the link to the getting started page (which is now First Use!) means that we have nothing called 'Getting/Get started'. Actually, I would be more in favour of accepting this change, but changing the link for get started back to 'Get started'
mitechie
May 10, 2017
Owner
I guess I've been in too much "getting started" all over the place and as we're starting to refer to things as tutorials or guides I thought it might be a good update to reduce using "getting" so much any more. I'm +1 on moving the First use to the new "Get started". I almost did that in here.
evilnick
May 10, 2017
Member
Yes, it is a pain, but it is also a common signpost, so I think it is useful to keep somewhere!
| - </li> | ||
| - <li><a href="getting-started-jaas.html">Juju as a Service (JAAS)</a></li> | ||
| + <li class="section"><a class="header" href="getting-started.html">First use!</a></li> | ||
| + <li><a href="tut-lxd.html">Local Juju with LXD cloud</a></li> |
evilnick
May 10, 2017
Member
I think we can come up with a better name for this. For one thing, LXD isn't the benefit, so it is rather irrelevant to messaging (LXD is how we deliver what they want).
Alternative suggestions - Juju on a no-cost, local cloud
mitechie
May 10, 2017
Owner
I think that it's worth keeping the lxd branding going. I worry about it being too generic and folks heading here that don't have or can't use LXD on their systems.
evilnick
May 10, 2017
Member
hmmm. Yes, that is an issue. I don't think its worth holding up the rest of the updates for though, but I think we should work on a better name
| @@ -195,14 +189,16 @@ | ||
| <!-- SECTION --> | ||
| <li class="section"><h4 class="header toggle-target">Reference</h4> | ||
| <ul> | ||
| + <li><a href="reference-install.html">Install Juju</a></li> | ||
| + <li><a href="introducing-2.html">Introducing Juju 2.0!</a></li> | ||
| + <li><a href="whats-new.html">What's new in 2.1</a></li> |
evilnick
May 10, 2017
Member
I'm not sure why we have moved this down to the reference section. It has very little visibility down here. I think the Juju 2.0 stuff is okay down here, but I feel there ought to be a 'what's new' link at the top
mitechie
May 10, 2017
Owner
I'm +1 when we do the what's new with 2.2 at the top? I guess I feel like there's a time window here and 2.1 is old enough that it pushes more important stuff down.
|
@mitechie yeah, the linkchecker is a pain - such a useful tool, but pretty much abandoned now. It doesn't work with Python3 at all. Are you trying to get it working on a Mac? It works on xenial with 2.7 and 3 installed. I think there are some references to jaas-getting-started, which need to be updated, but I will try it out here |
|
@mitechie yup, the following help pages still reference getting-started-jaas: help-azure |
mitechie
added some commits
May 10, 2017
|
Updated the name of the nav link for Get started and updated the broken link pages notes. Thanks for checking those. |
| - </li> | ||
| - <li><a href="getting-started-jaas.html">Juju as a Service (JAAS)</a></li> | ||
| + <li class="section"><a class="header" href="getting-started.html">First use!</a></li> | ||
| + <li><a href="tut-lxd.html">Local Juju with LXD cloud</a></li> |
evilnick
May 10, 2017
Member
I think we can come up with a better name for this. For one thing, LXD isn't the benefit, so it is rather irrelevant to messaging (LXD is how we deliver what they want).
Alternative suggestions - Juju on a no-cost, local cloud
mitechie
May 10, 2017
Owner
I think that it's worth keeping the lxd branding going. I worry about it being too generic and folks heading here that don't have or can't use LXD on their systems.
evilnick
May 10, 2017
Member
hmmm. Yes, that is an issue. I don't think its worth holding up the rest of the updates for though, but I think we should work on a better name
|
Ok, I'll merge this now. We will have to backport all the changes to get it into 2.1, |
evilnick
changed the title from
(WIP) Rework the getting-started sections of the docs.
to
Rework the getting-started sections of the docs.
May 10, 2017
evilnick
merged commit e9f0e2e
into
juju:master
May 10, 2017
|
Thank you for working with me on the updates. Appreciate all the sanity checking and time spent. |
|
NP, thanks for all the work you did! |
mitechie commentedMay 2, 2017
ToDo:
refer to.
it's all working properly, update any screenshots.