Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    How to automate ProGet installation via ansible so that ProGet and SQL EXPRESS gets added to D drive instead of default C drive

    Scheduled Pinned Locked Moved Support
    16 Posts 3 Posters 55 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      Srinidhi.Patwari_0272
      last edited by

      I need help in following :

      1. Automating installation, repaving of ProGet using Ansible
      2. During repave VM will be re-constructed so i can see things are going to C drive like SQL EXPRESS, INEDO HUB etc. This should by default go to D drive
      3. Restarting of ProGet via ansible should not impact
      4. We have SERVICE ACCOUNT that needs access to ProGet.
      atrippA 1 Reply Last reply Reply Quote 0
      • atrippA Offline
        atripp inedo-engineer @Srinidhi.Patwari_0272
        last edited by

        Hi @Srinidhi-Patwari_0272,

        To accomplish this, I would recommend writing a script that does the following:

        1. Installs SQL Express with the configuration you desire
        2. Download latest version of Inedo Hub
        3. Run hub.exe to perform silent installation

        Installing SQL Server in an automated manner is not trivial, and you will need to research the best way to do that in your environment. Here is an article I found when searching for that: SQL Server Unattended Installation with PowerShell.

        AS for steps #2 and #3, here is an example script from our Silent/Automated Installation Guide that you can adapt as you need:

        # create working directories
        mkdir C:\InedoHub
        cd C:\InedoHub
        
        # download and extract file to working directory
        Invoke-WebRequest "https://proget.inedo.com/upack/Products/download/InedoReleases/DesktopHub?contentOnly=zip&latest" -OutFile C:\InedoHub\InedoHub.zip
        Expand-Archive -Path InedoHub.zip -DestinationPath C:\InedoHub
        
        # perform silent installation
        hub.exe install ProGet:5.2.3 --ConnectionString="Data Source=localhost; Integrated Security=True;"
        

        Best,
        Alana

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          Srinidhi.Patwari_0272 @atripp
          last edited by Srinidhi.Patwari_0272

          @atripp
          Thanks for the reply.

          I have external DB, so how to attach it in silent installation. Does external DB should have any prior files to work?

          I understood that SQL express will be installed if we do silent installation.

          In my case i have rules like each 45 days VM must be repaved in that i will lose all SQL stuff.

          External DB i am using now. So how to achieve silent installation with external DB?

          atrippA 1 Reply Last reply Reply Quote 0
          • atrippA Offline
            atripp inedo-engineer @Srinidhi.Patwari_0272
            last edited by

            Hi @Srinidhi-Patwari_0272 ,

            I'm not totally sure I understand, but when you do a silent install you need to specify a connection string.

            So you would just specify the connection string you need like this I guess

            hub.exe install ProGet:5.2.3 --ConnectionString="Data Source=externals,qlserver.corp.local; Databse=ProGet;Integrated Security=True;"

            1 Reply Last reply Reply Quote 0
            • S Offline
              Srinidhi.Patwari_0272
              last edited by Srinidhi.Patwari_0272

              Hi @atripp
              i applied above command as it is with version and Server change. Proget installed.

              But attachment of external DB to my ProGet didn't happen. Can you please suggest any other way?

              1 Reply Last reply Reply Quote 0
              • S Offline
                Srinidhi.Patwari_0272
                last edited by

                Hi @atripp

                I'm able to fix it. Thanks

                Now i have last question: How to make ProGet URL accessible to all?
                When i added my URL under ProGet.config file i'm able to access but no one else. Is it that we need to make WebServer Enabled="false" in config file or something else?

                dean-houstonD 1 Reply Last reply Reply Quote 0
                • dean-houstonD Offline
                  dean-houston inedo-engineer @Srinidhi.Patwari_0272
                  last edited by

                  @Srinidhi-Patwari_0272 said in How to automate ProGet installation via ansible so that ProGet and SQL EXPRESS gets added to D drive instead of default C drive:

                  How to make ProGet URL accessible to all?

                  If you're able to access ProGet while being logged into the server, then it means the web server is up and running without issues.

                  From here, you'll need to adjust Windows firewall settings and/or enable DNS so that others can access. There's also certificate settings you'll need possibly. I'd check w/ your network team on this --- definitely not a change you can make inside of ProGet itself.

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    Srinidhi.Patwari_0272
                    last edited by

                    @dean-houston
                    Thanks for reply

                    If u shed some more light on how to add certificate would be a great help

                    1 Reply Last reply Reply Quote 0
                    • atrippA Offline
                      atripp inedo-engineer
                      last edited by

                      @Srinidhi-Patwari_0272 here is some information about HTTPS support on Windows:
                      https://docs.inedo.com/docs/installation-windows-https-support

                      However.... as Dean mentioned, this is something you'll need to work with your network team (a domain administrator) on, as the cert needs to be trusted, etc.

                      1 Reply Last reply Reply Quote 0
                      • S Offline
                        Srinidhi.Patwari_0272
                        last edited by

                        @atripp Now ProGet installation not working. It's failing while installing. It's not creating ProGet folder under C->ProgramData

                        1 Reply Last reply Reply Quote 0
                        • S Offline
                          Srinidhi.Patwari_0272
                          last edited by

                          @atripp kindly ignore above error message. It got resolved.

                          I still have issue with accessing proget url. I raised ticket to my Domain name where i added "http://abcd.efg.com:8624". So domain name should not include 8624? or how it is?

                          dean-houstonD 1 Reply Last reply Reply Quote 0
                          • dean-houstonD Offline
                            dean-houston inedo-engineer @Srinidhi.Patwari_0272
                            last edited by

                            Hi @Srinidhi-Patwari_0272,

                            The domain name is abcd.efg.com and the port is 8624; it's very likely someone will need to open that port on the firewall as well.

                            Cheers,
                            Dean

                            1 Reply Last reply Reply Quote 0
                            • S Offline
                              Srinidhi.Patwari_0272
                              last edited by

                              @dean-houston Part of my ProGet.config looks like
                              <WebServer Enabled="true" Urls="http://abcd.com:8624" />

                              So there is a need to add port number with url in config file?

                              Health check is failing and my terraform.tfvars looks like :
                              paths = [""]
                              ports = [80,443,8624]
                              health_port = 8624
                              health_request_path = ""
                              health_check_host = "abcd.com"
                              port_name = "http80"
                              https_health_check = false

                              We need http not https but proget url not being accessed in local laptop browsers. Firewall open for 8624 has been done. May i know what i am missing?

                              dean-houstonD 1 Reply Last reply Reply Quote 0
                              • dean-houstonD Offline
                                dean-houston inedo-engineer @Srinidhi.Patwari_0272
                                last edited by

                                Hi @Srinidhi-Patwari_0272 ... it sounds like everything's working on the ProGet side, but I'm not familiar enough with troubleshooting Terraform/etc. to advise how to troubleshoot automating that.

                                1 Reply Last reply Reply Quote 0
                                • S Offline
                                  Srinidhi.Patwari_0272
                                  last edited by

                                  Hi @dean-houston
                                  What about health check URL for ProGet application? I mean i need path for healthcheck

                                  dean-houstonD 1 Reply Last reply Reply Quote 0
                                  • dean-houstonD Offline
                                    dean-houston inedo-engineer @Srinidhi.Patwari_0272
                                    last edited by

                                    @Srinidhi-Patwari_0272 here is the api for healthcheck:
                                    https://docs.inedo.com/docs/proget-reference-api-health

                                    the url would be /health

                                    1 Reply Last reply Reply Quote 0

                                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                    With your input, this post could be even better 💗

                                    Register Login
                                    • 1 / 1
                                    • First post
                                      Last post
                                    Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation