• Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • ec2-plugin
    • None

      You should be able to just create an AMI by giving it the AMI id and maybe a label and everything else should be filled in with reasonable values so that you can immediately start it and it will just work.

      Like:

      • root directory: /jenkins
      • root command prefix: sudo
      • user: ec2-user

      And maybe a couple of other things.

          [JENKINS-12541] Provide sensible defaults when creating AMIs

          Frank Bille added a comment -

          We had a little talk on #jenkins:

          frankbille: the basic idea is good
          [10:47pm] frankbille: but since I'm using ubuntu linux ami's
          [10:48pm] francis4: is the default user different?
          [10:48pm] frankbille: my user would be ubuntu
          [10:48pm] francis4: ahh
          [10:48pm] frankbille: my root would be /var/lib/jenkins or something
          [10:48pm] francis4: can you comment on the JIRA?
          [10:48pm] frankbille: since I don't like "Poluting" the /
          [10:48pm] frankbille: of course
          [10:49pm] francis4: maybe we can have a way to select a default template of sorts and support Amazon and Ubuntu
          [10:49pm] francis4: or maybe /var/lib/jenkins is sensible for all flavors
          [10:49pm] frankbille: I don't disagree with the approach
          [10:49pm] frankbille: maybe it is only the user that set me off
          [10:50pm] frankbille: if we made home as /var/lib/jenkins it would be fine to have ec2-user/ubuntu/whatever as user
          [10:50pm] francis4: maybe just improving the help would help (and picking ec2-user and making the suggestion for others in the help, since the user is effectively required)
          [10:51pm] frankbille: +1 on improving help!!

          So it might be difficult to have some sensible defaults because it depends on when linux flavor is used. A better help description will for sure improve the ease of understanding.

          Frank Bille added a comment - We had a little talk on #jenkins: frankbille: the basic idea is good [10:47pm] frankbille: but since I'm using ubuntu linux ami's [10:48pm] francis4: is the default user different? [10:48pm] frankbille: my user would be ubuntu [10:48pm] francis4: ahh [10:48pm] frankbille: my root would be /var/lib/jenkins or something [10:48pm] francis4: can you comment on the JIRA? [10:48pm] frankbille: since I don't like "Poluting" the / [10:48pm] frankbille: of course [10:49pm] francis4: maybe we can have a way to select a default template of sorts and support Amazon and Ubuntu [10:49pm] francis4: or maybe /var/lib/jenkins is sensible for all flavors [10:49pm] frankbille: I don't disagree with the approach [10:49pm] frankbille: maybe it is only the user that set me off [10:50pm] frankbille: if we made home as /var/lib/jenkins it would be fine to have ec2-user/ubuntu/whatever as user [10:50pm] francis4: maybe just improving the help would help (and picking ec2-user and making the suggestion for others in the help, since the user is effectively required) [10:51pm] frankbille: +1 on improving help!! So it might be difficult to have some sensible defaults because it depends on when linux flavor is used. A better help description will for sure improve the ease of understanding.

          francisu Propose to close this, it's outside the scope of this project IMHO.

          Johnny Shields added a comment - francisu Propose to close this, it's outside the scope of this project IMHO.

            francisu Francis Upton
            francisu Francis Upton
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: