Community discussions

MikroTik App
 
User avatar
alice
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 79
Joined: Tue Jul 26, 2011 10:44 am

Central Deployment using Infrastructure-as-a-Code?

Sat Jan 11, 2014 10:38 am

Hi,

anyone has tried to integrate their RouterOS with tools like Chef, Puppet, Ansible, SaltStack ? I don't want to reinvent the wheel, I can't find a "prior art" though except obviously dead https://github.com/netmanagers/puppet-mikrotik .
 
normalcy
newbie
Posts: 42
Joined: Tue Jan 03, 2012 6:35 am
Location: Brisbane, Australia

Re: Central Deployment using Infrastructure-as-a-Code?

Mon Jan 20, 2014 12:47 am

I would love to see something like this as well, but I haven't found anything either.

I would imagine you could still use a playbook to make raw routeros calls via ssh, similar to what this guy does with iptables.

Otherwise, someone would probably have to write a python based ansible module to call the routeros API.

Most of the firewall examples I've found for ansible seem to be geared towards host based iptables configuration for servers.
 
normalcy
newbie
Posts: 42
Joined: Tue Jan 03, 2012 6:35 am
Location: Brisbane, Australia

Re: Central Deployment using Infrastructure-as-a-Code?

Mon Jan 20, 2014 3:14 am

I'm no programmer myself, but maybe looking at the python code for some of the existing firewalld and google compute engine networking modules might be a starting point for anyone with the skills to pick this up?
 
User avatar
alice
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 79
Joined: Tue Jul 26, 2011 10:44 am

Re: Central Deployment using Infrastructure-as-a-Code?

Mon Sep 22, 2014 5:51 pm

I'll stay for now with clusterssh.
 
User avatar
boen_robot
Forum Guru
Forum Guru
Posts: 2400
Joined: Thu Aug 31, 2006 4:43 pm
Location: europe://Bulgaria/Plovdiv

Re: Central Deployment using Infrastructure-as-a-Code?

Mon Sep 22, 2014 7:14 pm

I'm in the process of trying to make a RouterOS base VM with Packer, which could in turn be provisioned with other tools such as those. I am experiencing an issue, but once solved, it would be a good starting point to then be provisioned with scripts. I mean, virtually all such programs have the ability to upload files over SFTP, and run SSH commands, so it's all as simple as issuing "import filename".



EDIT: Wait... you're trying to automate provisions to existing real routers? Nevermind then... What I'm talking above is for a similar, but different purpose. The purpose being testing changes that would eventually be deployed using some tools.
 
User avatar
luqasz
Member Candidate
Member Candidate
Posts: 101
Joined: Thu Aug 16, 2007 9:53 pm
Location: Poland

Re: Central Deployment using Infrastructure-as-a-Code?

Sun Jul 26, 2015 2:47 pm

Hi

I have written a separate program to configura mikrotik devices via API. I have posted it on forum.
 
User avatar
mmv
Trainer
Trainer
Posts: 67
Joined: Wed Feb 24, 2010 5:03 pm
Location: Moscow, Russia
Contact:

Re: Central Deployment using Infrastructure-as-a-Code?

Mon Jul 27, 2015 2:36 pm

To collect relevant information in one topic.

Control Mikrotik from Ansible, by local tempate generetion, scp upload and ssh import:
http://blog.hudecof.net/posts/2014/11/0 ... sible.html
 
mwheat
just joined
Posts: 1
Joined: Tue Oct 21, 2014 4:21 pm

Re: Central Deployment using Infrastructure-as-a-Code?

Tue Sep 01, 2015 5:04 pm

interesting topic, i am interested in this as well.
 
wcsnet
Frequent Visitor
Frequent Visitor
Posts: 65
Joined: Mon Apr 29, 2013 12:43 pm
Location: South Africa

Central Deployment using Infrastructure-as-a-Code?

Wed Sep 02, 2015 7:34 pm

Maybe a little but off the topic, i have a series of scripts that sync any confic on a per device basis from a central router or a few routers email me if you are interested


Sent from my iPhone using Tapatalk
 
wcsnet
Frequent Visitor
Frequent Visitor
Posts: 65
Joined: Mon Apr 29, 2013 12:43 pm
Location: South Africa

Central Deployment using Infrastructure-as-a-Code?

Wed Sep 02, 2015 7:36 pm

WERNER.VENTER.MAIL@GMAIL.COM.


Sent from my iPhone using Tapatalk
 
 
User avatar
Hammy
Forum Veteran
Forum Veteran
Posts: 776
Joined: Fri May 28, 2004 5:53 pm
Location: DeKalb, IL
Contact:

Re: Central Deployment using Infrastructure-as-a-Code?

Sat Nov 05, 2016 3:30 pm

That issue has seen some activity in the past day.

Who is online

Users browsing this forum: Elvis1991, garyjduk and 35 guests