Navigation

    Netgate Discussion Forum
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    Pfsense Installation using Ansible??

    Off-Topic & Non-Support Discussion
    6
    10
    1299
    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.
    • D
      deegupt4 last edited by

      Does anyone has installed pfsense using Ansible?
      I am facing challenge while giving public ip via ansible?

      1 Reply Last reply Reply Quote 0
      • U
        uspsrackingbynumbers last edited by

        I faced same issue how can i solve it

        D 1 Reply Last reply Reply Quote 0
        • D
          deegupt4 @uspsrackingbynumbers last edited by

          @uspsrackingbynumbers no i couldn't find it, did you get something?

          1 Reply Last reply Reply Quote 0
          • H
            heavymeza last edited by

            Any update, guys?

            1 Reply Last reply Reply Quote 0
            • O
              opoplawski last edited by

              I'm not really sure I understand the question/issue. Can you explain in more detail what you are trying to do and what isn't working/

              1 Reply Last reply Reply Quote 0
              • JeGr
                JeGr LAYER 8 Moderator last edited by

                As ansible requires SSH to work at all, how do you want to "install" pfSense via ansible in the first place?

                Perhaps being a bit more specific what exactly you want to do with ansible would get you more responses :)

                Greets

                1 Reply Last reply Reply Quote 0
                • K
                  kraduk last edited by

                  I do a lot of ansible, and its not intended for os installation, its for configuration. Sure it doesnt need much to get going. Just a transport like ssh, or jexec, but it needs a functioning os. You can then bootstrap stuff like python-simplejson using the script module, and then use the more advanced modules. Non of this would really apply to pfsense though. I also havent seen any modules for pfsense, although you could probably use the uri module to push a config to pfsense.

                  JeGr 1 Reply Last reply Reply Quote 0
                  • JeGr
                    JeGr LAYER 8 Moderator @kraduk last edited by

                    @kraduk said in Pfsense Installation using Ansible??:

                    I also havent seen any modules for pfsense, although you could probably use the uri module to push a config to pfsense.

                    Nor that I would think I'd see any module as long as there is no official API for pfSense yet.
                    But what you actually CAN do is take a look at the pfSense developer shell (pfSsh.php) and the possibility to script/code the things directly in the $config XML structure of pfSense. We have a lot of VLANs for virtual project networks of different customers and are ATM testing that way to create all necessary Host/Network Aliases as well as a generic ruleset for all VLANs when newly created so Jenkins can trigger a simple ansible job via SSH and run the lines against pfSsh.php to create aliases, NAT configs and firewall rules on the corresponding VLAN. It's not as rock-solid stable as a real API but it can be used to try to automate a few jobs via command line.

                    Cheers
                    Jens

                    1 Reply Last reply Reply Quote 0
                    • O
                      opoplawski last edited by

                      Yeah, lack of an API does make it difficult. I've started what I can for an ansible module for pfsense here: https://github.com/opoplawski/ansible-pfsense

                      1 Reply Last reply Reply Quote 0
                      • K
                        kraduk last edited by

                        Sorry to be blunt but I'm at the Xmas do. What you are asking it how to birth before the act ...

                        1 Reply Last reply Reply Quote 0

                        Products

                        • Platform Overview
                        • TNSR
                        • pfSense
                        • Appliances

                        Services

                        • Training
                        • Professional Services

                        Support

                        • Subscription Plans
                        • Contact Support
                        • Product Lifecycle
                        • Documentation

                        News

                        • Media Coverage
                        • Press
                        • Events

                        Resources

                        • Blog
                        • FAQ
                        • Find a Partner
                        • Resource Library
                        • Security Information

                        Company

                        • About Us
                        • Careers
                        • Partners
                        • Contact Us
                        • Legal
                        Our Mission

                        We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

                        Subscribe to our Newsletter

                        Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

                        © 2020 Rubicon Communications, LLC | Privacy Policy